Added more email functionality
setting up production mode stuff