php mail html
hej er der nogen der kan hjælpe mig jeg for søger at få php mail til at sende en html mail den sender også mailen men viser det som koder kan nogen se hvad der er galt har prøver og prøvet men må give opif(isset($_POST['recover'])){
$form = 1;
$email = $db->EscapeString($_POST['email']);
$sql = $db->Query("SELECT username,email,password FROM `users` WHERE `email`='".$email."'");
$recover = $db->FetchArray($sql);
if($db->GetNumRows($sql) == 0){
$message = '<div class="msg error">We haven\'t found this email in our database!</div>';
}else{
$message = '<div class="msg success">Password was successfully sent to your email address!</div>';
$msg = '
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
@media only screen and (max-device-width: 480px) {#wrapper {width: 100% !important;} }
@media only screen and (max-device-width: 240px) {#wrapper {width: 100% !important;} }
-->
</style>
</head>
<body>
<center>
<div style="max-width:600px;display:block;margin: 20px auto 0px auto;" id="wrapper">
<div class="contentArea" id="contentArea1">
<table cellspacing="0" border="0" cellpadding="0" align="center" width="600" style="max-width:600px; width:600px; background-color: #000000;" id="headerTbl">
<tr>
<td align="center" valign="middle" width="600" style="line-height: 0">
<img border="0" src="http://member.wingisites.com/images/logo.png" style="display:block">
</td>
</tr>
</table>
<style type="text/css"><!-- #subheader a, .subheader a {color: #FF0000 !important;} --></style>
<table cellspacing="0" border="0" cellpadding="0" align="center" style="max-width:600px; width:600px;" id="contentTbl">
<tr>
<td align="left" valign="middle" width="600" style="padding: 10px 20px; background-color: #0000CC; color: #00FF33;" id="subheader" class="subheader">
klub wingisites det her det sker
</td>
</tr>
<tr>
<td style="background-color: #999999;">
<table cellspacing="0" border="0" style="max-width:600px; width:600px;" align="center" cellpadding="20" width="600">
<tr>
<td>
<style type="text/css"><!-- #innerTxt a, .innerTxt a {color: #66FF00 !important;} --></style>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" height="300" id="innerTxt" class="innerTxt" style="color: #FF0000;">
vi har motaget din email vi vil besvare den hurtigt muligt
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<table cellpadding="2" cellspacing="0" width="600" align="center">
<tr>
<td width="150" align="center">
</td>
<td width="450" align="center">
<font size="-1">
<br><br>
<b>klub wingisites</b><br>
Kenneth Hedelund
postboks 81
5700 Svendborg<br>
</font>
</td>
</tr>
</table>
</div>
</center>
<!-- HubSpot Email Marketing template: "Harvard" version: "1.2" timestamp: 1356449845 -->
</body></html>
';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers = 'From: admin@wingisites.com' . "\r\n";
mail($recover['email'], "Your Password", $msg, $headers);