RE: [PHP-DB] Mail problem

From: Date: Thu, 01 Aug 2002 06:38:59 +0000
Subject: RE: [PHP-DB] Mail problem
Groups: php.db 
Request: Send a blank email to php-db+get-20940@lists.php.net to get a copy of this message
Could you not simply extract all the email addresses from the DB as you would any other data, then loop thru the result set calling PHP's mail() function for every record retrieved? while($row=mysql_fetch_assoc($result)) { extract($row); //Presume's '$email ' is the name of the field in which email addresses are stored in your DB: @mail($email,$from,$subject,$body); } or am I missing something?? Russ -----Original Message----- From: Bartek Pawlik [mailto:pawlikb1@poczta.onet.pl] Sent: Thursday, August 01, 2002 2:30 PM To: php-db@lists.php.net Subject: [PHP-DB] Mail problem 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

« previous php.db (#20940) next »