You are here: Re: php mailing list operation « PHP Programming Language « IT news, forums, messages
Re: php mailing list operation

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация