i have dug a bit into the PHPMailer class. perhaps someone with a bit more experience can give me more direction.

i am using smtpauth for sending of emails. this configuration works correctly the majority of the times.

lately i am getting more and more of:

PHP Notice: Email Error: SMTP Error: The following recipients failed:

which is great to know; but ideally i would like to see the smtp_code for the failure. which never comes back in the log.

now, it looks like PHPMailer is a well supported project and continuously updated. and the code that could provide the status code is here:

https://github.com/zencart/zencart/b...hp#L3893-L3912

but i'm guessing that the $lasterror['error'] is always empty or there is a config that i am missing so that this information can be added to my debug logs, so i can further track down the problem.

i would think most (if not all) receiving mail servers would provide codes for failures. so i'm guessing there is something i am missing.

appreciate any help.