Dear friends,
I am trying to send HTML mail, but instead of a formatted HTML page I am getting plain text full of HTML code. What am I doing wrong? Here is the code I am using:
<?php
$page = file("http://www.geocities.com/wfbrasil/index.html", "r");
if (!$page)
{print "Ooops! Couldn't find the page!"; die;}
else {$content = join("", $page);}
print $content; //so that I see the result in my browser
$header = "Content-Type: text/html; charset=iso-8859-1;\nContent-Transfer-Encoding: 7bit\nFrom: me@mail.com\nReply-To: me@mail.com\nX-Mailer: PHP mail";
global $content, $header;
mail("test@mail.com", "HTML test", $content, $header);
?>
Thank you,
Luciano ES
Santos - SP - Brasil