嘿,我这里有这段代码,我想做的是将这个 html 文件中的内容包含到电子邮件中,但它似乎不起作用:( mime 类型好吗?是 php 不包括什么我在寻找?
$to = "email@domainname.com";
$subject = "Late Notice";
$message .= include("latenotice.html");
$from = "myfriend@hisdomainname.com";
$headers = "From:" . $from;
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
mail($to,$subject,$message,$headers);