RE: Unreliable mail delivery through PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jason Wong <mailto:php-general@xxxxxxxxxxxx>
    on Monday, December 13, 2004 10:52 PM said:

> On Tuesday 14 December 2004 07:43, Chris W. Parker wrote:
> 
>>     $headers = "From: $from\n"
>>               ."Reply-To: $from\n"
>>               ."X-Mailer: PHP/".phpversion();
> 
> Headers should be separated by "\r\n". Not sure why you're
> duplicating the From:.

Didn't know about the \r\n and I also didn't realize I was repeating the
>From value! :)

>> Assuming all the email addresses are correct, is there anything about
>> the above two functions that is incorrect or might be causing the
>> unreliable'ness'? Or maybe someone has some tips for debugging this
>> kind of thing?
> 
> Does your mailserver logs have anything to say?
> 
> Is the send_email() function being called at all? I would use
> trigger_error() or similar to write a message in the (php) log after
> mail() so that I would know for sure mail() was executed.

Good ideas. I will look into them.


Thanks,
Chris.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux