首页  >  文章  >  后端开发  >  [PHP] EOD 及 mail 发布_PHP

[PHP] EOD 及 mail 发布_PHP

WBOY
WBOY原创
2016-06-01 12:34:561052浏览

$message=

......成堆的字符串 如批量HTML代码 可以念

EOD;

装载到  $message 中。

$to="digico@123.com";

$mail ="hts@123.com";

$zhuti ="我爱你";   // 信件主题

// $mailheaders .="Content-Type=text/html;\r\n\tcharset=gb2312\r\n";
// $mailheaders .="Content-disposition: inline\r\n";
// $mailheaders .="Reply-To:\r\n";
// $mailheaders .="Content-Transfer-Encoding: 7bit\r\n";
$mailheaders = "From: $mail\n";//发信人的地址
// $mailheaders .= "To: $to\n";
 $mailheaders .= "MIME-Version: 1.0\n";
 $mailheaders .= "Content-type: text/html;\tcharset=gb2312";

mail($to,$zhuti,$message,$mailheaders);

OK !

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn