Forum Moderators: coopster
<?php
// Define the text of your email
$message = 'Your email body text.';// Connect to your database, grab the email addresses and send the message
mysql_connect('localhost','user','pass');
mysql_select_db('database');
$result = mysql_query ("SELECT * FROM `table`");
while ($row = mysql_fetch_array($result))
{
// Assuming that there is a field named "email" in your table
mail($row[email], 'Subject', $message, 'From: You <you@example.com>');
}
?>