Fixed problem with sending emails on errors
Merge pull request #103 from FelixOnline/error_email_fixes

Fixed problem with sending emails on errors