#110174Failure to sent mail is not always logged when using 'transport_spool_type' => 'memory',
Description
When 'transport_spool_type' => 'memory', is set (see https://docs.typo3.org/permalink/t3coreapi:confval-globals-typo3-conf-vars-mail-transport-spool-type) and sending mail fails for a different reason than an exception of type TransportExceptionInterface this is not logged.
This is the case for #110173, where PHP error occurs and no log entry is written.
This happens because MemorySpool::flushQueue() is triggered in MemorySpool::__destruct(), where the usual exception handling no longer works.
Reviews 4
- main 94709[BUGFIX] Fix sending spooled emails using HttpTransport
- 13.4 94865[BUGFIX] Ensure that failed attempts to send via MemorySpool are logged
- 14.3 94864[BUGFIX] Ensure that failed attempts to send via MemorySpool are logged
- main 94708[BUGFIX] Ensure that failed attempts to send via MemorySpool are logged