View Single Post
Old 08-07-2007, 10:48 AM   #10 (permalink)
MykeXero
Inactive
 
Join Date: 05-11-07
Posts: 21
iTrader: 0 / 0%
Latest Blog:
None

MykeXero is liked by many
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
MykeXero is offline   Reply With Quote