Problem sending mail - will not send if defined as HTML

This will send properly, but showing the HTML tags:


 $headers = 'MIME-Version: 1.0' . "\\r\
";
 $headers .= 'From:info@mydomain.com' . "\\r\
";
 $headers .= 'Reply-To: '.$replyADDRESS.  "\\r\
";
 $headers .= 'X-Mailer: PHP/' . phpversion();
 $message = '<p>This is a test from the contact form</p>';

This isn’t sending at all:


 $headers = 'MIME-Version: 1.0' . "\\r\
";
 $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\\r\
";
 $headers .= 'From:info@mydomain.com' . "\\r\
";
 $headers .= 'Reply-To: '.$replyADDRESS.  "\\r\
";
 $headers .= 'X-Mailer: PHP/' . phpversion();
 $message = '<p>This is a test from the contact form</p>';

Exact same code is working on another site on a different server.

Server for above:
System Linux spectre 2.6.32.45-grsec-2.2.2-r3 #8 SMP Mon Oct 10 13:33:17 PDT 2011 x86_64
Build Date Sep 23 2013 22:19:00

I’m an idiot? What have I got wrong.

The code you posted works fine on my system. It may be that your provider is blocking HTML mailings. Check with them.

Honestly, that’s about the ONLY thing I could figure! … and you’re right! Nothing like feeling stupid for several hours trying to figure what’s wrong with your code when it ain’t you, huh??

I need a drink now. Thanks very much!