Re: mail() doesn't work

From: Date: Sat, 13 Sep 2014 17:55:29 +0000
Subject: Re: mail() doesn't work
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-323849@lists.php.net to get a copy of this message
On 14-09-13 12:58 PM, Jim Giner wrote:
On 9/13/2014 12:27 PM, Robert Cummings wrote:
You've said the script works in other places, are these on the same server where you are having problems? Is the target mail server the same in all cases? Cheers, Rob.
It's all my same domain on a shared host. My provider says there is no problem with the emailbox. I can send emails manually to it and they are received no problem. The other scripts differ in that they are triggered by mail coming to a different address. They look for different things in the emails but then they send an email result to the same mailbox and work just fine. I suspect it is something I am doing in this particular script since that is the only variable. I just can't find it. I have php error checking on; I post error log messages throughout. No indications at all.
Since the mail() function is returning true your PHP script appears to be operating correctly (at least as far as using the mail() function). Are you sure your script is filling the fields correctly for the mail function? If you are absolutely certain that the fields are filled correctly then the culprit must be the mail server (since it's accepting the mail but not sending it along). Have you tried running a script known to work elsewhere within the not working environment? Cheers, Rob. -- Phone: 613-822-9060 +++ Cell: 613-600-2836 E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized.

« previous php.general (#323849) next »