Fixed mailer errors