note 77829 rejected from ref.mail by nlopess
| From: | nlopess@php.net | Date: | Fri, 14 Sep 2007 20:27:05 +0000 |
| Subject: | note 77829 rejected from ref.mail by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-130497@lists.php.net to get a copy of this message | ||
Note Submitter: smm18951 at yahoo dot com
----
I have been having serious trouble trying to nail this problem down....
I am trying to email html from a text field in my MySQL DB. The html is stored in the DB under the
field titled "emaildecline"
Here Is the code I am using:
if ($action == "decline")
{
$query = "delete from orders where id=$id and merchant=$merchant";
mysql_query( $query);
if ($sendemail == "yes")
{
mail("\"$name\" <$email>",
"Your order has been declined!",
stripslashes($r['emaildecline']),
"From: \"".$r['company_name']."\"
<".$r['email'].">\nReply-To: ".$r['email']);
}
}
When the email is sent the < br > and < b > and < a href > tags all show up as
regular text not as displayed html......