Re: Mail problem

From: Date: Thu, 01 Aug 2002 06:47:09 +0000
Subject: Re: Mail problem
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-20941@lists.php.net to get a copy of this message
Of course, but PHP is on Linux machine where I don't have sendmail, because my mail server is on different machine, and that's my problem Bartek ----- Original Message ----- From: "Russ" <russ@itomic.dns2go.com> To: "Bartek Pawlik" <pawlikb1@poczta.onet.pl>; <php-db@lists.php.net> Sent: Thursday, August 01, 2002 8:38 AM Subject: RE: [PHP-DB] Mail problem 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 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#20941) next »