Added MailException class for mail related exceptions.