Re: Mail problem
| From: | Craig Roberts | Date: | Fri, 01 Aug 2003 08:11:45 +0000 |
| Subject: | Re: Mail problem | ||
| References: | 1 2 3 4 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-29598@lists.php.net to get a copy of this message | ||
It might be a good idea to set a cron job to send say, 100 at a time over
the space of a few hours, to avoild killing the mail server or the server
blocking connections from you.
Also - use the BCC field to send the mail, this means only one connection
will need to be made to the mail server per batch of addresses, as opposed
to a connection per address (saves bandwidth and mail server!). The mail
server will then send the messages where they need to go and hide all the
other recipents.
Craig Roberts
"Mak" <mak@a-cro.net> wrote in message
news:20021002144357.27707.qmail@pb1.pair.com...
> Beware though...if there are too many addresses in the db, you may
encounter
> timeouts, or your browser may crash (very likely). Increase the timeout
> before you do such a mass-mail job.
>
> Also, my comment: If you do not want your receivers to find out who else
you
> sent the mail to, don't use the CC method. Just:
>
> for(until max. users reached){
> send out new mail to current user
> }
>
> Yours sincerely,
> Mak
>
> "Jj Harrison\" <webmaster@tececo.com> wrote in message
> news:20020811073622.74696.qmail@pb1.pair.com...
> >
> > > maybe use a for loop and mail command.
> > > should work
> >
> > Or put all the addresses in a CC/BCC field maybe sending every 100
emails
> to
> > prevent a mail overload/blockage due to to many recipients etc.
> >
> > Hint: look here:
> > http://www.php.net/manual/en/language.variables.php and
> you
> > can find a way to append more to an existing variable. Very useful in
your
> > case.
> >
> >
> > --
> > JJ Harrison
> > webmaster@tececo.com
> > www.tececo.com
> >
> > > "Unknown Sender" <bogus@news.php.net> wrote in message
> > > news:002701c23924$da9b1e40$539f4dd5@administrator...
> > > Sorry to be a little bit off topic.
> > >
> > > I need a tool or script in PHP, that will automaticaly send e-mails to
> > > receipients taken from database.
> > > For example 1 the same e-mail to 1000 receipients. B
> > >
> > > Mail server is on different machine.
> > >
> > > Thanks in advance
> > >
> > >
> > >
> >
> >
>
>