ok i have this php script;
[code=php]
<?PHP
$to = “[email protected]”;
$subject = “Feedback – Alabu Soap”;
$headers = “From: Alabu Soap Feedback”;
$date = date (“l, F jS, Y”);
$time = date (“h:i A”);
$msg = “Below is the result of Alabu’s Feedback form, it was submitted on $date at $time.nn”;
if ($_SERVER[‘REQUEST_METHOD’] == “POST”) {
foreach ($_POST as $key => $value) {
$msg .= ucfirst ($key) .” : “. $value . “n”;
}
}
else {
foreach ($_GET as $key => $value) {
$msg .= ucfirst ($key) .” : “. $value . “n”;
}
}
mail($to, $subject, $msg, $headers);
if ($forward == 1) {
header (“Location:$location”);
}
else {
}
$to = “$email”;
$subject = “Re: Feedback – Alabu Soap”;
$headers = “From: Alabu_Soap”;
$forward = 1;
$location = “http://65.215.194.171/forms/feedbackreply.html”;
$date = date (“l, F jS, Y”);
$time = date (“h:i A”);
$msg = “<html><body><font face=Arial, Helvetica, sans-serif>Thank you for your note, we recieved it on $date at $time, below is a copy of your message.</font><br><br><hr align=left width=50%></body></html>nn”;
if ($_SERVER[‘REQUEST_METHOD’] == “POST”) {
foreach ($_POST as $key => $value) {
$msg .= ucfirst ($key) .” : “. $value . “n”;
}
}
else {
foreach ($_GET as $key => $value) {
$msg .= ucfirst ($key) .” : “. $value . “n”;
}
}
mail($to, $subject, $msg, $headers);
if ($forward == 1) {
header (“Location:$location”);
}
else {
}
?>
everything works fine except for the html part, if i send it to like a hotmail accnt or something like that, it shows up as an html email, but if i send it to say, my email address, which i check using microsoft outlook, it comes as a plain text email and has all the ugly html tags in the mesage. any ideas how to fix that? to just make sure it sends as an html email every time? thanks…
Hal