Hi all,
When I send the html email, the only thing I receive is the tags (the
html codes basically). I want to be able to see the email like a html
page, what is wrong with my code? Here is a copy paste of it.
$HTML = "</html><body><img src='http://www.somewebsite .com/
someimage.jpg'> </body></html>";
$headers = "From: $from\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$boundary = uniqid("HTMLDEM O");
// Now we attach the HTML version
$headers .= "--$boundary\r\n".
"Content-Type: text/html; charset=ISO-8859-1\r\n".
"Content-Transfer-Encoding: base64\r\n\r\n" ;
$headers .= chunk_split(bas e64_encode($HTM L));
mail($to,$subje ct,"",$headers) ;
print "mail Sent<br>";
The email I receive has this as text:
</html><body><img src='http://www.somewebsite .com/someimage.jpg'> </
body></html>
Thanks!