Fix email configuration when initializing API
Merge pull request #768 from mrvisser/email-config

Fix email configuration when initializing API