如何用PHP发送HTML格式邮件? mail($to, $subject, $message, "MIME-Version: 1.0\nContent-type: text/html;charset=gb2312");重点就是Content-type:text/html 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $to = ****;$eurl = $_POST['eurl'];$ebody = $_POST['ebody'];$yemail = $_POST['yemail'];/* subject */$subject = "投诉";/* message */$message = "URL地址:" . $eurl . "\n";$message .= "说明:" . $ebody;$headera = "From:" . $yemail . "\n";$headera .= "Reply-To:" . $yemail . "\n";$headera .= "MIME-Version: 1.0\n";$headera .= "X-Priority: 3\n";$headera .= "X-MSMail-Priority: Normal\n";$headera .= "Content-Type: text/plain;\n";$headera .= "\tcharset=\"gb2312\"\n";/* and now mail it */mail($to, $subject, $message, $headera);这是我程序中的一段,可在$message中加入更多的内容。 使用smarty进行整体控制问题 phpzie 不完全使用教程 累了,做了个网站犒劳大家,工作时间间歇休息一下,顺便放分 PHP有办法实现文件上传进度条吗? 一个简单的问题 计划托管一台服务器,请大家帮忙 求一段代码,用来美观php脚本代码格式排版 ***我这贴子挂了几天,还是没人能解,这其实对高手来说是很简单的问题!!!再次加分挂贴!!! 提供免费ftp,供大家交流 PHP如何实现用户和管理员之间的通信? 论坛终于可用了,散分 有人知道什么是所见即所得吗?
$eurl = $_POST['eurl'];
$ebody = $_POST['ebody'];
$yemail = $_POST['yemail'];/* subject */
$subject = "投诉";
/* message */
$message = "URL地址:" . $eurl . "\n";
$message .= "说明:" . $ebody;$headera = "From:" . $yemail . "\n";
$headera .= "Reply-To:" . $yemail . "\n";
$headera .= "MIME-Version: 1.0\n";
$headera .= "X-Priority: 3\n";
$headera .= "X-MSMail-Priority: Normal\n";
$headera .= "Content-Type: text/plain;\n";
$headera .= "\tcharset=\"gb2312\"\n";
/* and now mail it */
mail($to, $subject, $message, $headera);这是我程序中的一段,可在$message中加入更多的内容。