Mailer code set to match that of the example