RE: [PHP-WIN] mail to too many users
by Martin Lindhe other posts by this author
Jan 29 2002 5:08PM messages near this date
[PHP-WIN] PHP 4.0.6 On Win2k IIS5
|
RE: [PHP-WIN] php 4.1 / xitami on a Win2k computer
> > >>> "Jim Lucas [php]" <jimphp@[...].com> 01/28/02 03:47PM >>>
> > with php's mail() funciton you can send to multiple
> recipents via the
> > headers. just build the headers so it will BCC to
> everybody at once.
> > one word of caution, you can only have a header that is 5kb or
> > smaller. otherwise php will start truncating the header.
> Found that
> > out the hard
> > way.
> >
> > so, just build a big header and send out 300 at a time.
> >
> It's not like the messages will not still be placed in the
> job queue, or that the
> server will not have to parse each address one by one, if
> they're in the Cc or
> BCc header: you may as well place the addresses in the To:
> field, separated by
> commas for all the difference it will make.
> Sending them out in lumps of 100s is likely to be more
> server-friendly, though.
> Can you schedule the equivalent of a Cron job on IIS?
> Have you experimented with the PHP 'sleep' and 'usleep'
> functions? Maybe you
> can give the server time to catch its breath this way...
I strongly disagree with putting all recipients in the To: field,
you just dont want to give out all other peoples mail-addresses
when they recieve the mail. That's why a Bcc: field exists (blind carbon
copy) :)
/Martin
> >
> >
> > > I need to send an email to 19000 users using a script, any
> > suggestions.
> > > Looping on a result set using the mail function would kill the
> > server.
> > > I know it can be done using a mailing list module but I'm
> running a
> > > windows machine with IIS, what's the best thing for this? Thanks.
> > >
>
>
> Symeon Charalabides (cosmopolitan trainee)
> ------------------------------------------
> Rm 305, IT centre, NUI Galway, Ireland.
> +353-91-524411 x3180
>
http://www.it.nuigalway.ie/~symeon/
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@[...].net
For additional commands, e-mail: php-windows-help@[...].net To contact
the list administrators, e-mail: php-list-admin@[...].net
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@[...].net
For additional commands, e-mail: php-windows-help@[...].net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
|