Otherwise, for professional purpose, it is really better to use PHPMailer to send any kinds of emails. You don’t have to do anything yourself. Just prepare your HTML and send it through PHPMailer class.
<?php
// multiple recipients
$to = 'test@sitepoint.com';
// subject
$subject = 'Testing';
//you can also include the source of the css file but must place the full URL with domain
//for example "http://sitepoint.com/test.css"
$css.='<style type="text/css">
.test{
font-size:12px;
color:red;
}
</style>';
// message
$message = '
<html>
<head>
<title>Birthday Reminders for August</title>
'.$css.'
</head>
<body>
<p class="test">Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th class="test">Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\\r\
";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\\r\
";
// Additional headers
$headers .= 'To: Mary <test@sitepoint.com>' . "\\r\
";
$headers .= 'From: Sitepoint <sitepoint@sitepoint.com>' . "\\r\
";
// Mail it
mail($to, $subject, $message, $headers);
?>
Try it out for yourself http://www.gbgrafix.com/thewheelofgod/twotexts/emailex.php
Yahoo seems more tolerant than hotmail. But it’s annoying that it goes in the junk folder. How does Sitepoint do it that the notifications go to the inbox?