added production mailer code