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