我有以下功能:
function mail_utf8($to="test@domain.com", $from_user="domain.com", $from_email="pageinfo@domain.com",$subject = 'äüß', $message = 'äöü')
{
$headers =
"MIME-Version: 1.0" . "\r\n" .
"Content-type: text/html; charset=UTF-8" . "\r\n"
."From: $from_user <$from_email>\r\n";
return mail($to, $subject, $message, $headers);
}
我使用标准参数运行此函数。奇怪的是,主题在邮件客户端中很好地显示,但是消息部分不被解释为utf-8。怎么来这个,我需要做些什么呢?