$to="[email protected]"; //收件人信箱
$from="[email protected]"; //发件人信箱
$subject="subject";$headers="From: ".$from."<".$from."> \r\n";
$headers.="Mime-Version: 1.0\r\n";
$headers.="Content-Type: text/html; charset=gb2312; format=flowed\r\n\r\n";$message="信息内容";mail($to, $subject, $message, $headers);
$from="[email protected]"; //发件人信箱
$subject="subject";$headers="From: ".$from."<".$from."> \r\n";
$headers.="Mime-Version: 1.0\r\n";
$headers.="Content-Type: text/html; charset=gb2312; format=flowed\r\n\r\n";$message="信息内容";mail($to, $subject, $message, $headers);
测试成功!