$headers .= “Content-Type: text/html;charset=utf-8 rn”;
$msg = “”;
$msg .= “<h2 style=”font-weight: bold; border-bottom: 1px dotted #ccc;”>你有新的消息</h2>rn”;
$msg .= “<strong>来自:</strong> “.$usermail.”rn”;
$msg .= “<strong>内容:</strong> “.$content.”rn”;
$msg .= “”;
if(@mail($sendto, $subject, $msg, $headers)) {
echo “true”;
} else {
echo “false”;
}
演示










