add code to Mailer