I am trying to email some html and can not get it to work. It only sends as plain text. I would appreciate any info about what is wrong/could be better as well.
Some of the body of the $message was cut out for size reasons
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="30;URL=home.htm">
</head>
<body>
<?php
$dname = $_REQUEST['dname'] ;
$fname = $_REQUEST['fname'] ;
$lname = $_REQUEST['lname'] ;
$email = $_REQUEST['email'] ;
$pnumber = $_REQUEST['pnumber'] ;
$fnumber = $_REQUEST['fnumber'] ;
$address1 = $_REQUEST['address1'] ;
$address2 = $_REQUEST['address2'] ;
$city = $_REQUEST['city'] ;
$province = $_REQUEST['province'] ;
$country = $_REQUEST['country'] ;
$postal = $_REQUEST['Postal'] ;
$abeginner = $_REQUEST['abeginner'] ;
$ajunior = $_REQUEST['ajunior'] ;
$aintermediate = $_REQUEST['aintermediate'] ;
$apro = $_REQUEST['apro'] ;
$avet = $_REQUEST['avet'] ;
$arecreational = $_REQUEST['arecreational'] ;
$age = $_REQUEST['age'] ;
$ttmx = $_REQUEST['ttmx'] ;
$ttsuperx = $_REQUEST['ttsuperx'] ;
$ttarenax = $_REQUEST['ttarenax'] ;
$ttfreestyle = $_REQUEST['ttfreestyle'] ;
$ttenduro = $_REQUEST['ttenduro'] ;
$ttice = $_REQUEST['ttice'] ;
$trhardpack = $_REQUEST['trhardpack'] ;
$trintermediate = $_REQUEST['trintermediate'] ;
$trsand = $_REQUEST['trsand'] ;
$trrocks = $_REQUEST['trrocks'] ;
$trroots = $_REQUEST['trroots'] ;
$RevalveShock = $_REQUEST['RevalveShock'] ;
$RebuildShock = $_REQUEST['RebuildShock'] ;
$ShockOilChange = $_REQUEST['ShockOilChange'] ;
$RevalveForks = $_REQUEST['RevalveForks'] ;
$RebuildForks = $_REQUEST['RebuildForks'] ;
$ForksOilChange = $_REQUEST['ForksOilChange'] ;
$ReplaceShockBearings = $_REQUEST['ReplaceShockBearings'] ;
$HSCAS = $_REQUEST['HSCAS'] ;
$HDBR = $_REQUEST['HDBR'] ;
$FCLSV = $_REQUEST['FCLSV'] ;
$WorksBladderCap = $_REQUEST['WorksBladderCap'] ;
$Polished = $_REQUEST['Polished'] ;
$Red = $_REQUEST['Red'] ;
$Blue = $_REQUEST['Blue'] ;
$Shorten = $_REQUEST['Shorten'] ;
$FCWorksOilLockCollars = $_REQUEST['FCWorksOilLockCollars'] ;
$FCPressureSprings = $_REQUEST['FCPressureSprings'] ;
$FCPDSRBK = $_REQUEST['FCPDSRBK'] ;
$FCCVSM = $_REQUEST['FCCVSM'] ;
$oillockcollarskyb = $_REQUEST['oillockcollarskyb'] ;
$shippingground = $_REQUEST['shippingground'] ;
$shipping3day = $_REQUEST['shipping3day'] ;
$shipping2day = $_REQUEST['shipping2day'] ;
$shipping1day = $_REQUEST['shipping1day'] ;
$shippingsatdel = $_REQUEST['shippingsatdel'] ;
$shippinggreyhound = $_REQUEST['shippinggreyhound'] ;
$aboutus = $_REQUEST['aboutus'] ;
$comments = $_REQUEST['comments'] ;
$weight = $_REQUEST['weight'] ;
$message = "
<html>
<head>
</head>
<body>
<table border='1'>
<tr>
<td>Dealer Name (If Applicalble) </td>
<td>< $dname ></td>
</tr>
<tr>
<td>First Name </td>
<td>< $fname ></td>
</tr>
<tr>
<td>Last Name </td>
<td>< $lname ></td>
</tr>
<tr>
<td>Riders Weight </td>
<td>< $weight ></td>
</tr>
<tr>
<td>Email</td>
<td>< $email ></td>
</tr>
<tr>
<td>Phone Number </td>
<td>< $pnumber ></td>
</tr>
<tr>
<td>Fax Number </td>
<td>< $fnumber ></td>
</tr>
<tr>
<td>Address Line 1 </td>
<td>< $address1 ></td>
</tr>
<tr>
<td>Address Line 2 </td>
<td>< $address2 ></td>
</tr>
<tr>
<td>City</td>
<td>< $city ></td>
</tr>
<tr>
<td>Province/State</td>
<td>< $province ></td>
</tr>
<tr>
<td>Country</td>
<td>< $country ></td>
</tr>
<tr>
<td>Postal/Zip Code</td>
<td>< $Postal ></td>
</tr>
<tr>
<tr>
<td>Comments/Notes</td>
<td> $comments </td>
</tr>
</table>
" ;
$message .= "\r\n\r\n";
$to = user <user@place.com>" . ", " ;
$to .= "user2 <user2@place.com>";
$headers = "MIME-Version: 1.0\r\n" ;
$headers .="Content-type: text/html; charset=iso-8859-1\r\n" ;
$subject = "Rider Service" ;
mail ("$to", "$subject", "$message","From: $email", $headers );
?>
<p>Thank you, Your Form has been submitted, </p>
<p> </p>
<p>You are now returning <a href="home.htm">home</a>. </p>
</body>
</html>