phpmailer, or any other mime class, is not giving you the actual response code of the end delivery of the email, unless you are directly sending your email from phpmailer (which is possible but not intelligent). It can be confusing to people when they don't understand the transport of the message to its final destination. phpmailer will be creating your message and injecting it to your MTA, i.e. postfix. Lets say your email is to some...@hotmail.com and your script creates this message and sends it to (your) postfix mta. The 2xx response is from your postfix install on your server, not from the actual delivery attempt postfix makes to hotmail. And this makes sense, postfix takes in a smtp message as incoming mail and sends it through smtp as outgoing mail.
So your 2xx response you got from phpmailer means you successfully delivered the email from your script to your postfix mta, that 2xx response means postfix has accepted the message and will process it. If the final destination of the message was to an email address on your server, postfix would finish the delivery by sending the message to the local mailbox, but in the hotmail example, postfix takes the message from you successfully, puts it in the queue, and then attempts to connect to hotmail and do the entire smtp conversation all over again with hotmail, where hotmail would give postfix the response code of that attempt. This response has absolutely nothing to do with the response you got from phpmailer. Hope I was addressing the original issue, I only saw the last few messages of this thread. Paul On Sat, Nov 2, 2013 at 11:21 PM, Jeroen Geilman <jer...@adaptr.nl> wrote: > On 11/2/2013 3:00 PM, li...@rhsoft.net wrote: > >> >> >> Am 02.11.2013 12:15, schrieb Jeroen Geilman: >> >>> Using php-mailer or any language/api (in [HTTP Server]), I only have >>>> feedback for connection between servers: "Connection to SMTP server was >>>> OK", but this is not a proof that my message was really sent. >>>> >>> >> if the send-method() of phpmailer gives "true" back that this *is* >> the proff because it got a 2xx status code from the SMTP server >> >> No, there is much more information exchanged. >>> >>> If whatever library you are using on the HTTP end does not properly >>> support SMTP >>> >> >> phpmailer *does* and with correct handling you even got the >> whole server responses on the website >> >> > This is not a phpmailer() or PHP list. > > > >