Re: sending bulk emails - mail() success/failure

From: Date: Fri, 02 Nov 2001 17:22:26 +0000
Subject: Re: sending bulk emails - mail() success/failure
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-13952@lists.php.net to get a copy of this message
Shane, You said: ----- > IMO better this way than a short-timeout script - sending one email can > sometimes take ages (long DNS lookup, slow connection to the host, etc...) ----- 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

« previous php.db (#13952) next »