PHP Code:
<?php //MySQL Connect
$result = mysql_query("SELECT * FROM `email_list` WHERE 1"); $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
while ($row = mysql_fetch_array( $result) { mail($row['to'], $subject , $message, $headers); }
?>
Wow that was easy....
Last edited by MykeXero : 08-07-2007 at 10:49 AM.
Reason: i love couch
|