handle email error