changes to app mailer to make production work