【发布时间】:2013-06-12 13:30:48
【问题描述】:
我正在尝试使用 PHP 发送电子邮件,包括多语言字符。整个网站(html header、php header)都设置为UTF8以及form charset。
我现在拥有的 PHP 代码是:
$to = "email@email.com";
$subject = "Subject";
$message = "Question is ".$question;
$from = "auto@from.com";
$headers = "From:" . $from . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-UTF-8' . "\r\n";
$sendmail = @mail($to,$subject,$message,$headers);
我想我在某个地方错了?
我得到'?以带有日文字母的字符为例。
【问题讨论】: