fixes for syntax error in mailer