Replies: 1 comment 7 replies
-
Unfortunately the SMTP spec doesn't define what appears after the error code, so in a generic SMTP client, it can only rely on the |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Is there any way to get the detailed SMTP error message on failure. For example, email providers such as AWS SES provide different error messages for different purposes. If you try to send a message from an unauthorized address the PHPMailer debug info displays the error message as "554 Message rejected: Email address is not verified. The following identities failed the check in region US-EAST-2:", but the error message returned from the PHPMailer exception handler is "SMTP Error: data not accepted".
Likewise, if you are sending messages too fast for your quota in SES, the PHPMailer debug info reports the error message as "554 Sending rate exceeded", but the error message returned from the PHPMailer exception handler is still "SMTP Error: data not accepted". Both of the conditions each require completely different handling, but PHPMailer returns the same generic error instead of the detailed error when viewing debug info.
Thanks for the help!
Beta Was this translation helpful? Give feedback.
All reactions