Отослать почту в HTML, php
Code (php)
-
-
#отсылаем почту в HTML формате
-
function mymail($email,$subj, $body, $from="noreply@zzz.ru")
-
{
-
$mailheader=‘<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />’;
-
$mailfooter = ”;
-
-
$headers = "From: {$from}rn";
-
$headers .= "Content-type: text/html; charset=utf-8rn";
-
-
return true;
-
else return false;
-
}
