Merge pull request #1 from siddharthabose03/mail_notification

Mail Notification on Server Up and Down
:octocat: updated
Merge pull request #2 from siddharthabose03/mail_notification

:beetle: mail sending bug fixes.
Added some error handling
Added some error handling code