hopefully email error handling works with gmail