bug fixes for gg-mailer