fix mailer method