目前測出的原因是第三方的郵寄組件有問題

PHPMailer在處理郵件標題的時候,對UTF8的轉換不完全導致

整封活動信件寄出去都會變亂碼

暫時解決方法分享如下

==================

修改includes/phpmailer/class.phpmailer.php

尋找

function EncodeHeader ($str, $position = ‘text’) {

function EncodeHeader ($str, $position = ‘text’, $pl = 0) {

if ( $pl ) return "=?" . $this->CharSet . "?B?" . base64_encode($str) . "?=";

接著尋找

$this->HeaderLine("Subject", $this->EncodeHeader

在目前函數最後方加上,’text’,1 的參數進去