Hi I have a database of people in mysql and one of the columns is email. Does anyone know how to generate and email list or group from that database so we can email them all at once, something more simple than query just emails and add them to an address book.
Thanks a ton for everyones help🙂
Kate
try this
$SQL = \"SELECT id,email from table\"; $result = mysql_query($SQL); while($row = mysql_fetch_array($result)) { $user_email = $row[\"email\"];
mail($user_email,\"subject\",\"message\");
}
This is nice and simple