HTML Mail() Sending as Plain Text

$to = "[email protected]";
$subject = "SUBJECT";
$message = "<b>MESSAGE</b>";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: Mailer ' . "\r\n";
mail($to, $subject, $message, $headers);

The above code does not always send emails in HTML as it should, it turns out there is a PHP Bug ( ) that comes into play with QMAIL and carriage returns.
If this is the case you should replace “\r\n” with a “\n” only.