RE: stumped-mail and database

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

 



I prefer to assign the db values to loca variables to ensure that I am sending out exactly what I need to.

Bastien

From: Stuart Felenstein <stuart4m@xxxxxxxxx>
To: php-db@xxxxxxxxxxxxx
Subject:  stumped-mail and database
Date: Mon, 6 Dec 2004 10:05:57 -0800 (PST)

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@xxxxxxxxxxxxxxxxxxxxxxx\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

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 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