Code: Select all
<?php
$ToName = "Me";
$ToEmail = "myemail@address.com";
$ToSubject = "Mail Test";
$EmailBody = "<h1>Yo.</h1>";
$FromName = "Me";
$FromEmail = "me@mydomain.com";
$header = "To: ".$ToName." <".$ToEmail.">\n"."From: ".$FromName." <".$FromEmail.">\n"."MIME Version: 1.0\n"."Content-type: text/html; charset=iso-8859-1\n";
mail($ToEmail,$ToSubject,$EmailBody,$header);
?>
***
MIME Version: 1.0
Content-type: text/html; charset=iso-8859-1
<h1>Yo.</h1>
***
Why doesn't isn't it being read as html?