add mailer sample code