下一篇 » « 上一篇

[PHP] EOD 及 mail 发布

作者:爱好者    时间:2008-01-22    来源:php之家    点击:1685    本文共1篇文章 字体:[ ]

[PHP] EOD 及 mail 发布

$message= <<<EOD

......成堆的字符串 如批量HTML代码 可以念 www.444p.com php学习之家

EOD; www.444p.com版权所有

装载到  $message 中。

www.444p.com

$to="digico@123.com";

www.444p.com

$mail ="hts@123.com"; 本文来自 www.444p.com

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

php学习之家

// $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";

本文来自 www.444p.com

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

www.444p.com

OK !

本文来自 www.444p.com

发表评论
密码: (游客不需要密码)
记住我【Alt+S 或 Ctrl+Enter 快速提交】

搜索工具


《PHP精通》点击排行