我正在尝试发送带有 html 代码的电子邮件。我有以下代码;
$message ="<html><head><title></title></head><body>test</body></html>";
$rmail = $mail_email;
$subject = "subject";
$head = "MIME-Version: 1.0 ";
$head .= "Content-type: text/html; charset=utf8";
$head .= "Date: ".date("r")." ";
$mail_at=mail($rmail, $subject, $message, $head);
但是,当我打开邮件时,邮件内容是,
<html><head><title></title></head><body>test</body></html>
它只是发送字符串而不编译 html 代码。