Re: Unreliable mail delivery through PHP

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

 



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:.

> 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.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
BOFH Excuse #50:

Change in Earth's rotational speed
*/

-- 
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