Updating settings to use environment variables for email config.