Thats interesting.
I tried to do the same thing with 5000 emails using sendmail, and I found
that only about 1/2 were actually sent, it seems like the multiple calls to
mail caused some of them to be ignored. I had to sleep for a couple of
seconds before each call to mail() in order to get them all out.

No one else had this problem?

----- Original Message -----
From: "Tim" <[EMAIL PROTECTED]>
To: "Jimmy Bäckström" <[EMAIL PROTECTED]>
Cc: "Tyler Longren" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 9:39 AM
Subject: Re: SV: [PHP] Sending alots of mail


> I have a system where we send periodic batches of 60,000 messages at a
> time, so it's definitely doable.  It helps to put some throttling in
> there (i.e. a sleep() periodically) to be kind to your e-mail server.
>
> - Tim
>
> On 16 Aug 2001 18:34:11 +0200, Jimmy Bäckström wrote:
> > Hmm I knew that =)
> > I just wondered if it's such a good idea. 5000 mail is very much you
know.
> >
> > /Jimmy
> > ----- Original Message -----
> > From: Tyler Longren <[EMAIL PROTECTED]>
> > To: Jimmy Bäckström <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Thursday, August 16, 2001 6:25 PM
> > Subject: Re: [PHP] Sending alots of mail
> >
> >
> > > This was just discussed last week.  Here's how:
> > > $connection = mysql_connect("host","user","pass");
> > > $db = mysql_select_db("db_name", $connection);
> > > $sql = mysql_query("SELECT * FROM table_name ORDER BY email ASC");
> > > while ($row = mysql_fetch_array($sql)) {
> > > $email = $row["email"];
> > > $name = $row["name"];
> > > // code to send email (use the mail() function)
> > > }
> > >
> > > Good luck,
> > > Tyler Longren
> > > Captain Jack Communications
> > > [EMAIL PROTECTED]
> > > www.captainjack.com
> > >
> > >
> > >
> > > On Thu, 16 Aug 2001 18:29:04 +0200
> > > Jimmy Bäckström <[EMAIL PROTECTED]> wrote:
> > >
> > > > Hi list!
> > > > I'm about to write an application that takes about 5000 mailadresses
> > > > from a database, and then sends a mail to each one of them. I
haven't
> > > > done this kind of apps before, so I don't know if it's a good idea.
Does
> > > > anyone have any suggestions?
> > > >
> > > > /Jimmy
> > > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to