Sure...

<?php

   // connect to mysql

   // perform query to get e-mails

   while($row = mysql_fetch_row($result)) {

        mail($row['email'], $subject, $content);

   }

   mysql_close();

?>

|-----Original Message-----
|From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
|Sent: Saturday, September 01, 2001 1:51 AM
|To: [EMAIL PROTECTED]
|Subject: Bulk mailing
|
|
|Hi list members,
|
|I want to mail a newsletter to about 500+ email addresses.
|Can anyone give php script that mails to all email addresses picking from a
|table in Mysql and mailing newsletter while addressing individually.
|
|
|Thanks in advance,
|
|Ajay K. Ratra
|[EMAIL PROTECTED]
|
|
|---------------------------------------------------------------------
|Before posting, please check:
|   http://www.mysql.com/manual.php   (the manual)
|   http://lists.mysql.com/           (the list archive)
|
|To request this thread, e-mail <[EMAIL PROTECTED]>
|To unsubscribe, e-mail
|<[EMAIL PROTECTED]>
|Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
|


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to