added MailHandler to main.py