php - 发送主题为法语口音的电子邮件

时间:2015-10-16 10:45:04

标签: php email character-encoding non-ascii-characters

我可以使用以下代码在php邮件中发送法语口音é

$subject = "é";
$message = "<html>&eacute;<html>";

$headers = 'From: noreply@mymail.fr' . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

mail($to, $subject, $message, $headers);

但是,如何在主题中发送重音?

0 个答案:

没有答案
相关问题