This code generates an email. When this email is viewed in Windows Live Hotmail it spits out the code itself not the html content.
$to = "email@example.com";
$subject = "PUT_SUBJECT_HERE";
$mail_body = '
Put HTML content here with variables from PHP if you like
Variable display Example: ' . $subject . '
$headers = "From:firstname.lastname@example.org";
$headers .= "Content-type: text/htmlrn";
mail($to, $subject, $mail_body, $headers);