Re: php mailing list operation
- From: Carl Vondrick <usenet@xxxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 01:03:49 GMT
Cleverbum@xxxxxxxxxxx wrote:
Hi,
I'm using the mail() function to send out newsletters to subscribers,
problem is that it seems a little unreliable...
at the moment I assemble the mail outside a loop then iterate through
all the mail addresses
for($i=0;$i<$numaddresses;$i++){
mail($to[$i],$subj,$message,$fromstr);
}
should i be putting in a delay message or a retry_on_fail method or
anything?
Martin
mail() is not usually the best choice - you should try using sendmail or STMP.
But, anyways, for mail, you should batch them. I send 50 at a time. If you do not, your script will either time out or your browser will abort.
Carl Vondrick
.
- Follow-Ups:
- Re: php mailing list operation
- From: Richard Levasseur
- Re: php mailing list operation
- References:
- php mailing list operation
- From: Cleverbum
- php mailing list operation
- Prev by Date: php mailing list operation
- Next by Date: Re: Mysterious missing newlines ...
- Previous by thread: php mailing list operation
- Next by thread: Re: php mailing list operation
- Index(es):