[PHP] EOD 及 main 发布
时间:2007-02-17 来源:PHP爱好者
$message= <<<EOD......成堆的字符串 如批量HTML代码 可以念EOD; 装载到 $message 中。$to="[email protected]";$mail ="[email protected]";$zhuti ="我爱你"; // 信件主题// $mailheaders .="Content-Type=text/html;rntcharset=gb2312rn";
// $mailheaders .="Content-disposition: inlinern";
// $mailheaders .="Reply-To:rn";
// $mailheaders .="Content-Transfer-Encoding: 7bitrn";
$mailheaders = "From: $mailn";//发信人的地址
// $mailheaders .= "To: $ton";
$mailheaders .= "MIME-Version: 1.0n";
$mailheaders .= "Content-type: text/html;tcharset=gb2312";mail($to,$zhuti,$message,$mailheaders);OK !
php爱好者站 http://www.phpfans.net php基础|php进阶|php模板.
// $mailheaders .="Content-disposition: inlinern";
// $mailheaders .="Reply-To:rn";
// $mailheaders .="Content-Transfer-Encoding: 7bitrn";
$mailheaders = "From: $mailn";//发信人的地址
// $mailheaders .= "To: $ton";
$mailheaders .= "MIME-Version: 1.0n";
$mailheaders .= "Content-type: text/html;tcharset=gb2312";mail($to,$zhuti,$message,$mailheaders);OK !
php爱好者站 http://www.phpfans.net php基础|php进阶|php模板.
相关阅读 更多 +