jcadima
2/17/2016 - 5:15 PM

Set mail headers to use HTML instead of default PHP new lines

Set mail headers to use HTML instead of default PHP new lines

http://stackoverflow.com/questions/7061991/php-mail-not-sending-html-emails-correctly

<?php
// include this in your mail header
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// dont forget headers (optional Bcc) :
'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'Bcc: someone@example.com' . "\r\n" . 
'X-Mailer: PHP/' . phpversion();