Added internal error mail logging support
Merge pull request #75 from gateway4labs/mail_errors

Added internal error mail logging support