stumped-mail and database

From: Date: Mon, 06 Dec 2004 18:05:57 +0000
Subject: stumped-mail and database
Groups: php.db 
Request: Send a blank email to php-db+get-37613@lists.php.net to get a copy of this message
I'm trying to send mail out based partially on a recordset/binding. The fields are available but I'm not sure if they need to be turned into a variable first or if I can just reference them in the body of the email. Here is what I tried: $to = "$rsVendorJobs->Fields('Conmail')"; $subject = $rsVendorJobs->Fields('RefEm'); $body = '$cl'; $headers = "From: admin@mymiserablesite.com.com\n"; mail($to,$subject,$body,$headers); echo "Mail sent to $to"; } K...so you know this didn't work. I'm googling around but haven't come up with anything on this subject. Appreciate some pointers please. Stuart

« previous php.db (#37613) next »