function
htmlemailheaders($from="somename<[EMAIL PROTECTED]>",$CC="",$BCC=""){
//three arguments, last two optional
// http://www.mindspring.com/~mgrand/mime.html voor mime specificaties
$mailheaders = NULL;//initi
$mailheaders .= "From: $from\r\n";//waarde van eerste argument van de
functie
$ma
mmm, could you use a foreach loop?
I think you will need to send separate mail items for each e-mail
address you have stored in the database if you want to address it to
them personally.
Eg in seudo code:
foreach($row_returned_from_database){
# variables & headers etc here
# eg, $contactemail
mail() will not run queries, you need to look at the php manual for the set
of functions for the database type you plan on using and execute the
database stuff in your script and pass the formatted results in the
appropriate argument of the mail function.
ie
$con = mysql_connect($host, $user,$pw);