updated email error reporting