We ran into a problem a couple of years ago that mail sent via a Web site form could not reach email accounts through Exchange Server. They weren't going into Spam folders or being filtered out--they simply were not showing up.
We resolved this by adding -f to the mail() function. So, it looked like this:
mail($mailto, $subject, $body, "From: $mailfrom", "-f $mailfrom");
This worked. However, we've just upgraded to a new server and PHP 5, and it's no longer working. It boils down to this:
- Web-based forms using mail() function
- Mail recipients get mail through Exchange server
- Recipients don't get the email sent by the form
Has anyone run into this issue and/or have a cure?
Thanks.