added email error reporting, closes #82