Hello I want to send an html email.
I currently use this code to send text emails I would like to send html email so I can include the look and feel of the website.
$subject = "Text email";
$sName = "Chris Wheat";
$sEmail = "me@server.com";
$toemail = "".$row['email']."";
$sBuffer = "----------------- News Alert--------------------\n".
" \n".
"Hello ".$row['fname']." ".$row['lname'].",\n".
"We've just added the following article to server:\n".
" \n".
"$title\n".
" \n".
"You can veiw this story by going to:\n".
"http://www.server.com/home/news.php?news_id=$id\n".
"\n".
"Thank You,\n".
"Chris Wheat\n".
" \n".
"-----------------------------------------------------------\n\n";
mail($toemail, "$subject", $sBuffer, "From: $sName<$sEmail>\r\n");