having much problem in email.
i tried everything..but dont know whats hapening im getting simple plain text email
while im sending the html input
{
$from_name= ADMIN_NAME;
$from_email=ADMIN_EMAIL;
$subject="Simple html email";
$message = '<h1>Hello, World!</h1> </br>'.$_POST['msg'];
$headers = "From: $from_name <$from_email>\r\n";
$headers .= "Reply-To: $from_name <$from_email>\r\n";
$headers .= "Return-Path: $from_name <$from_email>\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$query="SELECT email From abc WHERE visible=1";
$result=mysql_query($query) or mysql_error();
while($rowdata=mysql_fetch_array($result))
{
$to = $rowdata['email'];
mail($to,$subject,$message,$headers);
}
///////////////////////////////////////
<form method="post" action="newsletter.php"> <fieldset>
<p class="first">
<label for="name">Subject</label>
<span>
<input type="sub" name="sub" id="news" value="" size="40" /><br/>
</span>
</p>
<label for="content">Message:<span>*</span></label>
<textarea name="msg" id="msg" rows="4" cols="35"></textarea>
</fieldset>
<p>
<input type="submit" name="submit" class="button" value="Send Mail" />
</p>
</form>