Whatever I do, whatever headers I elaborate, it does not work. Even I have inserted content type in the header (within the message itself). I'll go crazy ...
Php version: 5.2.17
Machine: Linux
Kernel version: 2.6.32-46.1.BHsmp (if this matters)
<?php
$headers = "From: <sender@mydomain.com>" . "
";
$headers .= "MIME-Version: 1.0" . "
";
$headers .= "http-equiv='Content-Type' content='text/html; charset=iso-8859-1'
";
$emailBody="<html>";
$emailBody .= "<head>";
$emailBody .= "<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>";
$emailBody .= "</head>";
$emailBody .= "<body>";
$emailBody .= "Hello Dear, <br><b>Bla Bla</b><br> See you later. <br>Bye.";
$emailBody .= "</body>";
$emailBody .= "</head>";
$emailBody .= "</html>";
mail("<recipient@gmail.com>", "Testing some HTML mail", $emailBody, $headers);
?>
Waiting for an expert in PHP/HTML to review the code above.
Any help would be highly appreciated.
Thanks a lot.