exception handling in mailer