Emails from database...
| From: | Dhaval Desai | Date: | Wed, 04 Apr 2001 07:28:09 +0000 |
| Subject: | Emails from database... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-46990@lists.php.net to get a copy of this message | ||
Hi!
This is my code for sending email to all the emails in
my database:
$connect = mysql_connecT();
$query = "select email from table";
$execute = mysql_db_query("database", $query);
while($r=mysql_fetch_array($execute))
{
$email .= $r('email')
mail("$email", "My Subject", "Line 1\nLine 2\nLine
3");
}
Will this send email to all the emails in the
database?
Is there any otehr wya of doing it?
Thank You
Dhaval Desai
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/