<?
# assign send email (actual email address redacted)
$to = "patrick@omited.com";
# assemble header
$header = "Reply-To: ".$_POST['email']."\nFrom: ".$_POST['email'];
# fix subject
$subject = "Ticket Number";
#url
$url = "http://www.omited.com/portal/ticket-status.php?ticket_no=";
#ticket number
$ticket = $_POST['ticketnumber'];
# assemble body
$body .= "<html><body>"."\n";
$body .= "Hello ".$_POST['name'].",<br>
<br>
";
$body .= "Check Computer Status: <a href=\"".$url.$ticket."\">".$ticket."</a><br>"."\n";
$body .= "Favorite Location: ".$_POST['fav']."\n";
$body .= "</html></body>"."\n";
# send mail
mail($to,$subject,$body,$header);
?>
It will not send the email in HTML its just plain test, any idea how to fix this?
THis is how it looks in my email:
<html><body>
Hello Patrick omited,<br>
-----------------------------------------------------<br>
<br>
Check Computer Status: <a href="http://www.omited.com/portal/ticket-status.php?ticket_no=089028">089028</a><br>
Favorite Location:
</html></body>