The following email code sends to my yahoo account just fine, it is displayed as a properly formatted message. But when I send it to my gmail account the actual html code is displayed instead of a formatted message. Any help in resolving this would be appreciated. Thanks.
<?php
$send_notice_to="me@gmail.com";
$head_notice = 'MIME-Version: 1.0' . "\r\n";
$head_notice .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$head_notice .= 'From: [email]contact@mailplace.com[/email]. "\r\n" .
'Reply-To: [email]contact@mailplace.com[/email]. "\r\n" .
'X-Mailer: PHP/' . phpversion();
$message_notice =
'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Title</title>
</head>
<p>Message Here</p>
</body>
</html>
';
mail($send_notice_to,'My Subject', $message_notice, $head_notice);
?>