|
Posted by Carl Vondrick on 02/28/06 03:03
Cleverbum@hotmail.com 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
Navigation:
[Reply to this message]
|