Jason Wong <mailto:[EMAIL PROTECTED]>
    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

Reply via email to