I've got a problem with a PHP script which sends an email confirmation. When receiving the email in Thunderbird, the header comes through with the \r\n present and with the MIME type also containing the Content-type information. Hence the email renders as plain text, rather than HTML.
If I comment out the MIME type as below, the email renders correctly. Firstly, is there a significant problem doing this, and secondly, what might be causing this?
if($apptpro_config->html_email == "Yes"){
//$headers .= 'MIME-Version:1.0\r\n';
$headers .= 'Content-type:text/html; charset=ISO-8859-1\r\n';
}
return(mail($to, $subject, $message, $headers));