[PHP] EOD 及 mail 发布
程序员文章站
2024-04-05 20:43:07
...
$message= ......成堆的字符串 如批量HTML代码 可以念
EOD;
装载到 $message 中。
$to="digico@123.com";
$mail ="hts@123.com";
$zhuti ="我爱你"; // 信件主题
// $mailheaders .="Content-Type=text/html; charset=gb2312";
// $mailheaders .="Content-disposition: inline";
// $mailheaders .="Reply-To:";
// $mailheaders .="Content-Transfer-Encoding: 7bit";
$mailheaders = "From: $mail";//发信人的地址
// $mailheaders .= "To: $to";
$mailheaders .= "MIME-Version: 1.0";
$mailheaders .= "Content-type: text/html; charset=gb2312";
mail($to,$zhuti,$message,$mailheaders);
OK !
EOD;
装载到 $message 中。
$to="digico@123.com";
$mail ="hts@123.com";
$zhuti ="我爱你"; // 信件主题
// $mailheaders .="Content-Type=text/html; charset=gb2312";
// $mailheaders .="Content-disposition: inline";
// $mailheaders .="Reply-To:";
// $mailheaders .="Content-Transfer-Encoding: 7bit";
$mailheaders = "From: $mail";//发信人的地址
// $mailheaders .= "To: $to";
$mailheaders .= "MIME-Version: 1.0";
$mailheaders .= "Content-type: text/html; charset=gb2312";
mail($to,$zhuti,$message,$mailheaders);
OK !
上一篇: 重新编译MySQL后phpMyAdmin报#2002错误
下一篇: 关于PHP内核的问题