updated custom mailer