$message= <<<EOD
......成堆的字符串 如批量HTML代码 可以念 php学习之家
EOD; www.444p.com php学习之家
装载到 $message 中。 php学习之家
$to="digico@123.com"; www.444p.com
$mail ="hts@123.com"; www.444p.com
$zhuti ="我爱你"; // 信件主题 www.444p.com 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";
mail($to,$zhuti,$message,$mailheaders);
OK ! php学习之家
















