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.