Fixed mailer bugs.