Closed rr-it closed 1 year ago
Thx, I think this needs a clean integration into luxletter. I'm open for PR :)
These codes/error messages are defined in: RFC5321 (RFC2821) SMTP -> SMTP Replies -> 4.2.1 Reply Code Severities and Theory See https://www.rfc-editor.org/rfc/rfc5321#section-4.2.1
5yz Permanent Negative Completion reply The command was not accepted and the requested action did not occur. The SMTP client SHOULD NOT repeat the exact request (in the same sequence). […]
Permanent failures include
Send the newsletter via SMTP and the "new" Symfony Mailer might throw errors. Then the sending queue is blocked indefinitely, as it tries to re-send the blocked mail and fails again.
Example error: (This one might actually be fixed on the SMTP sender server by disabling "recipient domain verification".)
Quick fix for my installation and SMTP server error message: EXT:luxletter/Classes/Mail/SendMail.php
See https://symfony.com/doc/current/mailer.html#handling-sending-failures