Re: [PHP-DB] PHP mail() question?

2003-04-02 Thread rolf vreijdenberger
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 $mailheaders

RE: [PHP-DB] PHP mail() question?

2003-04-01 Thread Gavin Amm
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

RE: [PHP-DB] PHP mail() question?

2003-03-31 Thread Jennifer Goodie
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,