i have a table of emails in a MySQL database, is there any way i can send one email to each of them containing the same message?
here's what i'm working with:
while ( $maillist = mysql_fetch_assoc($result))
{
foreach ( $array as $key => $value ) {
mail()
or die("mailError");
}
}
i understand that the above code puts all the MySQL query reslults into a file, but i don't understand what the $array, $key, and $value variables stand for.
and, will this code allow me to send singular emails to each email in the DB?
thanks
~JOSH