RE: [PHP-DB] Mail problem

From: Date: Thu, 01 Aug 2002 06:49:03 +0000
Subject: RE: [PHP-DB] Mail problem
Groups: php.db 
Request: Send a blank email to php-db+get-20942@lists.php.net to get a copy of this message
Just looking at our php.ini file and we use an external machine to send mail with when calling the mail() function. I think you just need to change the directive for the path/URI to the mail server you wish PHP to use, in your php.ini file. HTH :-) Russ -----Original Message----- From: Bartek Pawlik [mailto:pawlikb1@poczta.onet.pl] Sent: Thursday, August 01, 2002 2:47 PM To: php-db@lists.php.net; Russ Subject: Re: [PHP-DB] Mail problem 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 (#20942) next »