I was looking for a PHP mailer that responds correctly to SMTP status
and error codes, and PHPMailer was suggested to me.
First of all I'm struggling to find full documentation for the package.
All the website links either fold back to the front page, or go to
articles that have been removed. I did find a link to this list, so I'll
ask my question here hoping for enlightenment.
I'm using the 'advanced test' script that comes with the package with no
alteration other than sender/receiver address. My issue is the remote
server rejects the mail with a 550 (based on content) - BUT PHPMailer
reports delivery as successful.
The blocking is not an issue (I can deal with that), but it is
imperative that if the mailer hits a 550 (or any 5xx) error that it does
not report the send as successful.
Also, it seems to be reporting OK for mail that is greylisted with 4xx
I appreciate that if I dump local mail into a
sendmail/postfix/exim/qmail queue, then the mailer has, in effect, half
done it's job by delivering it to a local MTA. However, I need the
realtime feedback for 4xx and 5xx errors. With this in mind can
PHPMailer do direct to MX and handle errors correctly, or does it always
have to make use of the local MTA?