Configured app for production emails and fixed error in production.rb had two end statements