Re: sending bulk emails - mail() success/failure
| From: | Shane Wright | Date: | Fri, 02 Nov 2001 17:45:25 +0000 |
| Subject: | Re: sending bulk emails - mail() success/failure | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-13953@lists.php.net to get a copy of this message | ||
Hi
> The mail() entry in the manual does say that it returns a boolean for send
> success/failure, however none of the examples make any use of such
> feedback. Is there a way to work out if something has gone wrong with a
> particular mail out, what the actual failure was, eg SMTP server down, DNS
> lookup failed, slow connection time-out, etc? Indeed what will trigger a
> FALSE return?
>
> Please advise,
> =dn
From what I've seen/used of it, the true/false return isnt much use in most
cases as most causes of failure dont cause the false return as they happen
after the initial stage :(
a false return can be caused by an immediate failure - i.e. user unknown on a
local mailbox - but aside from that not a clue, sorry :(
On a slightly OT note, I'm finding the best way to manage the whole process
is to set up a temp email account and use that as the 'From' and 'Return
Path' address, then have a PHP script receive mail from that mailbox and scan
for undeliverables/unsubscribes and remove/disable them in the list as
appropriate. Its a lot of work though :(
--
Shane