All my clients read it properly (as html) but some others it's is coming with non-parsed html code (<html><body><h1>This is an email</h1></body></html>). I have spent hours on this and still can't seem to solve the problem.
This is my code, can anyone see anything wrong with it?
Code: Select all
$message = "<html><body><h3>This is your message, ".$FirstName." ".$LastName."</h3>\n ";
$message.= "You have been assigned a Society Number. Please do not lose this number as you will need it to login.<br> ";
// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70);
$headers = 'From: info@prixaurorawards.ca' . "\r\n" .
'Reply-To: info@prixaurorawards.ca' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$headers.= 'MIME-Version: 1.0' . "\r\n";
$headers.= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Send
mail($Email, 'Registration Confirmation', $message, $headers);