The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
All I did was write the HTML within the Content segment of the function.
Is it actually possible to have the mail sent as an HTML mail thought the mail() function, and if so, how can I tell the function to do this?
Thanks.
All I needed was to put the content type in:
"MIME-Version: 1.0\r\nContent-type: text/html; charset=iso-8859-1"
... within the fourth paramater (where the headers for the mail are set).
For anyone else who's interested:
$To = "[email protected]";
$Subject = "test - HTML";
$Content = "";
$Content .= "";
$Content .= "Hello,
this is a test.";
$Content .= "";
$Content .= "";
$Headers = "FROM:[email protected]\r\n";
$Headers .= "MIME-Version: 1.0\r\n";
$Headers .= "Content-type: text/html; charset=iso-8859-1";
mail($To,$Subject,$Content,$Headers) or print "
Mail not sent.
";?>
All I did was write the HTML within the Content segment of the function.
Is it actually possible to have the mail sent as an HTML mail thought the mail() function, and if so, how can I tell the function to do this?
Thanks.