|
在客户端看到邮件如下所示:
订单邮件:
文件路径: /catalog/model/checkout/order.php
找了OC的代码并注释:
//$mail->setSubject(html_entity_decode($subject, ENT_QUOTES, 'UTF-8'));
添加如下代码:
$subject = "=?UTF-8?B?".base64_encode($subject)."?=";
$mail->setSubject($subject);
注册邮件:
文件路径: /catalog/model/account/customer.php
找了OC的代码并注释:
//$mail->setSubject(html_entity_decode($subject, ENT_QUOTES, 'UTF-8'));
添加如下代码:
$subject = "=?UTF-8?B?".base64_encode($subject)."?=";
$mail->setSubject($subject);
忘记密码邮件: /catalog/controller/account/forgotten.php
找了OC的代码并注释:
//$mail->setSubject(html_entity_decode($subject, ENT_QUOTES, 'UTF-8'));
添加如下代码:
$subject = "=?UTF-8?B?".base64_encode($subject)."?=";
$mail->setSubject($subject);
注意如果使用mail协议发送时不需要修改上面的代码 |
|