RE: [PHP-DB] sending bulk emails

From: Date: Fri, 02 Nov 2001 18:27:57 +0000
Subject: RE: [PHP-DB] sending bulk emails
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-13954@lists.php.net to get a copy of this message
Put this before each email goes out. It will give your script another 30 seconds to run. set_time_limit(30); -Jason Garber IonZoft.com At 08:18 AM 11/2/2001 -0800, Jonathan Hilgeman wrote:
Interesting that this should come up. The company I work for needs to send out an e-mail to 95k of their subscribers. Now, this is the first time in 2 years, so you can imagine that we'll be getting 94k of bounced e-mail addresses. So I'm writing a script that will handle sending out the e-mails and handling incoming bounced e-mail addresses. In any case, I would think that my PHP script would time out before sending 95k e-mails. I know it has timed out at 30 seconds before, but I can't remember if the faulty script had an endless loop for 30 seconds or if there was any data getting sent or received in that time. Anyone know beforehand whether I will get a timeout with sending these e-mails, and if so, how to work around it? - Jonathan -----Original Message----- From: Russ Michell [mailto:r.j.michell@apu.ac.uk] Sent: Friday, November 02, 2001 4:20 AM To: Cami Cc: PHP DB list Subject: Re: [PHP-DB] sending bulk emails Does anybody know how to send bulk emails using php? Don't do it!! But of you must - I guess you could build an array containing email addresses, names, etc - taken from form input or a database or whatever and then loop the arrays mailing people... $mail = "mail("; for($i=0; $i<$email_array_name;$i++( {
        $mail .= "$values,";
        }
$mail .= "\"$subject\",\"$body\",\"From: $from\");"; Something like that anyway (that's just off the top of my head) Regards. Russ On Fri, 2 Nov 2001 11:26:22 -0000 Cami <cami@fcpl.com> wrote: Hi guys, Does anybody know how to send bulk emails using php? Thanks, Cami -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net #-------------------------------------------------------# "Believe nothing - consider everything" Russ Michell Anglia Polytechnic University Webteam Room 1C 'The Eastings' East Road, Cambridge e: r.j.michell@apu.ac.uk w: www.apu.ac.uk/webteam www.theruss.com #-------------------------------------------------------# -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.db (#13954) next »