$message= <<<EOD ......成堆的字符串 如批量HTML代碼 可以念
EOD;
裝載到 $message 中。
$to="[email protected]";
$mail ="[email protected]";
$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 !