SV: [PHP] Sending alots of mail

From: Date: Thu, 16 Aug 2001 16:34:11 +0000
Subject: SV: [PHP] Sending alots of mail
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-63062@lists.php.net to get a copy of this message
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 <tyler@captainjack.com> To: Jimmy Bäckström <broder_b@chello.se> Cc: <php-general@lists.php.net> 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 > tyler@captainjack.com > www.captainjack.com > > > > On Thu, 16 Aug 2001 18:29:04 +0200 > Jimmy Bäckström <broder_b@chello.se> 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: 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 >

« previous php.general (#63062) next »