Re: mail() process limit
| From: | Randy | Date: | Wed, 15 Nov 2000 18:11:09 +0000 |
| Subject: | Re: mail() process limit | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25481@lists.php.net to get a copy of this message | ||
Hello Richard,
Thanks for the tip! Unfortunately, I can't find any class from
him which works with an SMTP server. I found one that talks to a
POP3 and allows you to manipulate your email, and a couple others
by him. Can you point me to the SMTP class?
BTW. all of the emails are personalized, with their name, status
and different text based on what they've done on our site
(different steps they take). The emails aren't simply blasted out
either. They are timed according to the different steps the
visitors take, and some events by one user will trigger an email
to a specific subset of users, etc. All automatically, so no list
program can do this nor will CC.
Best regards,
Randy
Tuesday, November 14, 2000, 4:31:40 PM, you wrote:
RL> Use Manuel Lemos class that talks directly to the SMTP server instead of
RL> forking sendmail 200 times.
RL> Actually, you could probably get by with using Cc: for about 50 users at a
RL> time, and send 4 emails, but you'll still hit a limit eventually anyway.
RL> For future needs, even with spewing email directly at SMTP, PHP is probably
RL> the wrong tool to use for sending thousands of emails in bulk email.
RL> Mailing list software exists for that purpose.
RL> ----- Original Message -----
RL> From: Randy <foxpro@minutemanups.com>
RL> Newsgroups: php.general
RL> Sent: Tuesday, November 14, 2000 3:44 PM
RL> Subject: [PHP] mail() process limit
>> I am sending an email message to multiple users from a mysql
>> database. Due to a limit of processes available to me (40), I am
>> only able to send to about 35 people and then the php program
>> stops mailing because I've used my allocation of processes.
>>
>> Can anyone tell me how to mail() in a loop and ensure that I
>> don't go over 20 or so processes, but send to perhaps 200 people
>> with one loop?
>>
>> IE: Some code that will do something like the following.
>>
>> while (<more email addresses to send to>) {
>> $name=<name from table> ;
>> $email=<email from table> ;
>> mail($email,"the subject","Hi, $name, blah blah") ;
>> if (<NbrOfProcesses > 20>)
>> <Do something to kill a done process or wait for
>> one to die or something> ;
>> }
>> }
>>
>> I've tried delays at the end of the loop, but maybe the delay
>> wasn't long enough? How long should the sendmail process last and
>> how can I speed it up or find out when it's done or do something
>> so that I can control the max number of processes WITHOUT
>> stopping the mailing program?
>>
>> Thanks for any help!
>> --
>> Best regards,
>> Randy
>> mailto:foxpro@minutemanups.com
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>> For additional commands, e-mail: php-general-help@lists.php.net
>> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>>