better error handling when sending a spool by email, #17620