Fixed some bugs reconfiguring app for Production emails