fix issue with mailsettings for heroku