Tag: 电子邮件标题

来自PHP的电子邮件已破坏主题头编码

我的PHP脚本发送电子邮件给用户,当电子邮件到达他们的邮箱时,主题行( $subject )具有添加到我的主题文本末尾的字符。 这显然是编码问题。 电子邮件内容本身很好,只是主题行被打破。 我已经搜遍了,但无法find如何正确编码我的主题 。 这是我的标题。 请注意,我正在使用Content-Type和charset=utf-8和Content-Transfer-Encoding: 8bit 。 //set all necessary headers $headers = "From: $sender_name<$from>\n"; $headers .= "Reply-To: $sender_name<$from>\n"; $headers .= "X-Sender: $sender_name<$from>\n"; $headers .= "X-Mailer: PHP4\n"; //mailer $headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal $headers .= "MIME-Version: 1.0\n"; $headers .= "X-MSMail-Priority: High\n"; $headers .= "Importance: 3\n"; $headers .= "Date: […]