Re: need to send customised mails from db, please help! :(
| From: | Jason G. | Date: | Tue, 16 Oct 2001 04:52:03 +0000 |
| Subject: | Re: need to send customised mails from db, please help! :( | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71170@lists.php.net to get a copy of this message | ||
Write a script that queries the db for email, user, pass.
then
while($oRow = mysql_fetch_object($result))
{
//send mail() - look in docs
//use $oRow->email
//use $oRow->user
//use $oRow->pass
}
At 07:06 PM 10/15/2001 -0700, sunny AT wde wrote:
Hi all, I've got a whole big bunch of email addresses and names and usernames / passwords in a database. I need to send each email address their username and password through a script or something. Can someone please help me with some code or examples? The list isn't that big, only about 300 users or something. I'm using MySQL on a Linux box. Thanks! Sandeep __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com -- 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