首頁  >  文章  >  後端開發  >  [PHP] EOD 及 mail 发布_PHP教程

[PHP] EOD 及 mail 发布_PHP教程

WBOY
WBOY原創
2016-07-20 11:05:071037瀏覽

$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 !



www.bkjia.comtruehttp://www.bkjia.com/PHPjc/445166.htmlTechArticle$message= EOD ......成堆的字符串 如批量HTML代码 可以念 EOD; 装载到 $message 中。 $to="digico@123.com"; $mail ="hts@123.com"; $zhuti ="我爱你"; // 信件主题...
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn