发送text邮件
server需安装Multibyte String模块
@mb_language(“Japanese”); @mb_internal_encoding(‘SJIS’); if(mb_send_mail($to,$subject,$message,$additional_headers)){ return $msg = “儊乕儖偑憲怣偝傟傑偟偨”; }else{ return $msg = “儊乕儖憲怣偑幐攕偟傑偟偨”; }如果没安装,又需要发送日文邮件可以使用html格式.注意html的编码. 居说有些日本人会挡html邮件,所以最好用text方式.
$headers = “MIME-Version: 1.0\r\n”; $headers .= “Content-type: text/html; charset=Shift_JIS\r\n”; $headers .= “From: “.$frommail.” \r\n”; $mailmsg = sendmail($tomail,$subject,$body,$headers); echo “”; echo “”; die; function sendmail($to, $subject, $message, $additional_headers = “”) { if(@mail($to,$subject,$message,$additional_headers)){ return $msg = “儊乕儖偑憲怣偝傟傑偟偨”; }else{ return $msg = “儊乕儖憲怣偑幐攕偟傑偟偨”; } }
No Responses (yet)
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.