Updated code
Merge pull request #2 from siddharthabose03/mail_notification

:beetle: mail sending bug fixes.