如何在 php $from1="from@gmail.com" 中发送邮件;$headers = 'MIME 版本:1.0' 。"\r\n ;
$headers.= 'Content-type: text/html; charset=utf-8' .
\r\n;
$headers.=
来自:Newslatter ' .$from1. \r\n
; $headers .= Reply-To: '.$from1.
\r\n ;
$headers .=
Return-Path:'. $from1. ; $ \r\n
headers .= CC:
.$CCMAIL1. \r\n
; $headers .= '密件抄送:'.$BCCMAIL. \r\n
;
if(mail($to,$subject,$message,$headers)){
return true;
}
else{
return false;
}