Moved variables to config, and include simple email sending api