Re: Unreliable mail delivery through PHP
| From: | Jason Wong | Date: | Tue, 14 Dec 2004 06:52:24 +0000 |
| Subject: | Re: Unreliable mail delivery through PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204274@lists.php.net to get a copy of this message | ||
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
*/