Hi all,
I cant find any scripts that do this how do you sent a HTML email?
Thanks JoePC
Printable View
Hi all,
I cant find any scripts that do this how do you sent a HTML email?
Thanks JoePC
PHP Code:<?
// your message in HTML
$msg = "
<HTML>
<BODY style='font-family:Arial, Verdana, Tahoma; font-size:12px;'>
<b>Hi!</b><br>
You are ugly. <u>Really</u> UGLY!
";
// now add the header
$headers = "From: $yourname <$youremail>\nReply-To: $youremail\nContent-Type: text/html; charset=iso-8859-1";
mail("$to", "$subject", "$msg", "$headers");
?>
I dont know if you still need help with this, but check in your php.ini that you have all of your SMTP server settings filled out. Without that, it wont send it because there is no server to send it with. You can download free SMTP servers on google, or you could use your ISP's like, Comcast.