fixed mailer type errors