You are here: Re: Newsletter « PHP SQL « IT news, forums, messages
Re: Newsletter

Posted by Neil Trigger on 12/02/06 00:31

Lovey - thanks.

--
Neil Trigger
http://www.matrix23.co.uk
"Serge Terryn" <serge@essetee.be> wrote in message
news:UjBbh.212113$qH3.3287087@phobos.telenet-ops.be...
> Neil Trigger schreef:
> > hi.
> > I'm trying to write a newsletter script but the server times out.
> >
> > I'm getting all email address fields from an sql table, putting it into
a
> > string, then emailing the string.
> > Would it be better to email one address, then get the next?
> >
> > Cheers,
> >
> > --
> > Neil Trigger
> > http://www.matrix23.co.uk
> >
> >
>
> Put al your email adsresses in an array
>
> $first = time();
> $second = $first + 1;
> foreach ($arry as $value) {
> mail($value,.....)
> while (($second - $first) <= 2) {
> $second=time();
> }
> $first = $second;
> }
>
> That will send every 2 seconds a mail. If you mail too fast, it's
> possible that de mailserver will drop your mails.
>
>
> --
> Essetee ---- Roeselare ---- Belgium
> http://www.essetee.be
> ICQ : 763290 -- Jabber : essetee@jabber.org

 

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

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