better email error reporting