<?php
$to = 'scyz2@163.com';
$subject = "=?UTF-8?B?".base64_encode('邮件标题')."?=";
$headers = 'MIME-Version: 1.0' . "\n";
$headers .= 'X-Mailer: Tmail OpenSource Power By Thismail.org' . "\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\n";
// Additional headers
//$headers .= 'To: Tmail Core < Jacky@thismail.org>' . "\n";
$headers .= 'From: Tmail Core < Jacky@thismail.org>' . "\n";
$headers .= 'Reply-To: Tmail Core < Jacky@thismail.org>' . "\n";
$headers .= 'Sender: Tmail Core < Jacky@thismail.org>' . "\n";
$message = "这是邮件正文";
mail($to, $subject, $message, $headers);
?>
$to = 'scyz2@163.com';
$subject = "=?UTF-8?B?".base64_encode('邮件标题')."?=";
$headers = 'MIME-Version: 1.0' . "\n";
$headers .= 'X-Mailer: Tmail OpenSource Power By Thismail.org' . "\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\n";
// Additional headers
//$headers .= 'To: Tmail Core < Jacky@thismail.org>' . "\n";
$headers .= 'From: Tmail Core < Jacky@thismail.org>' . "\n";
$headers .= 'Reply-To: Tmail Core < Jacky@thismail.org>' . "\n";
$headers .= 'Sender: Tmail Core < Jacky@thismail.org>' . "\n";
$message = "这是邮件正文";
mail($to, $subject, $message, $headers);
?>