issue #22392: handle email error