Handling mail exception