sending html email from a web-based form
| From: | rw at xend dot net | Date: | Mon, 18 Nov 2002 03:53:17 +0000 |
| Subject: | sending html email from a web-based form | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-124862@lists.php.net to get a copy of this message | ||
Here is the code that is supposed to do what I want:
$headers = "From: \"$name $last\" <$email>\n" . "Reply-To:
<$email>\n\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1";
mail($to, $subject, $msg, $headers) or die ("Mail not sent.!");
Instead, I get all of the raw code in the email.
Any suggestions?
Thanks
RW