I have a problem with a new script that processes incoming emails. I’m using some std. code that works in several other scripts just fine. This new script is giving me problems with the mail call though.
I have done extensive debugging to ensure that mail is the culprit. It has come down to my script issuing a call to error_log to post an entry prior to the mail() call and then one following the mail() call with the result of the call. The error log shows that the mail was sent successfully (if returns true) YET the email never arrives.
What conclusion would you make from this? That perhaps the headers were wrong? Well, I copy and pasted the headers from a script that worked just fine a minute ago and tried the problem script again and the email still does not show up. (The source for the headers did in fact send an email that I received)
So, the headers work in one place – they should work in the other, no? That means only that my post office (at my host) is rejecting the email?
Any ideas?