test code for mailer