RE: [PHP-DB] stumped-mail and database

From: Date: Mon, 06 Dec 2004 18:37:23 +0000
Subject: RE: [PHP-DB] stumped-mail and database
Groups: php.db 
Request: Send a blank email to php-db+get-37615@lists.php.net to get a copy of this message
-----Original Message----- From: Stuart Felenstein [mailto:stuart4m@yahoo.com] > 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"; > } 1) change $to = "$rsVendorJobs->Fields('Conmail')"; To $to = "{$rsVendorJobs->Fields('Conmail')}"; Or just $to = $rsVendorJobs->Fields('Conmail'); 2) change $body = '$cl'; To $body = $cl; 3) from mail() docs [this is just for reference, since you're only sending one header it's probably not a problem] "Note: You must use \r\n to separate headers, although some Unix mail transfer agents may work with just a single newline (\n)." Then we'll see where you are from there... Cheers, - Martin Norland, Database / Web Developer, International Outreach x3257 The opinion(s) contained within this email do not necessarily represent those of St. Jude Children's Research Hospital.

« previous php.db (#37615) next »