RE: stumped-mail and database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----Original Message-----
From: Stuart Felenstein [mailto:stuart4m@xxxxxxxxx] 
> Here is what I tried:
> 
> $to = "$rsVendorJobs->Fields('Conmail')";
> $subject = $rsVendorJobs->Fields('RefEm');
> $body = '$cl';
> $headers = "From: admin@xxxxxxxxxxxxxxxxxxxxxxx\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.
-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux