php代码

$to         = '[email protected]'; 
$subject  = "=?UTF-8?B?".base64_encode('邮件标题')."?="; 
$headers  = 'MIME-Version: 1.0' . "\r\n"; 
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; 
// Additional headers 
$headers .= 'To: Xinple '[email protected]>' . "\r\n"; 
$headers .= 'From: Admin [email protected]>' . "\r\n"; 
$headers .= 'Reply-To: Xinple 'phplovers@example>' . "\r\n"; 
mail($to, $subject, $message, $headers);
登录后复制
09-14 06:53