Exception handling for email