wp_maill() 修正 UTF-8 亂碼
- Posted by Beata on 三月 18th, 2006 filed in wordpress
為了避免每次更新WP就必須在30幾個檔案之內尋找wp_mail的芳蹤,紀錄一下好了。
wp-includes/pluggable-functions.php
搜尋
return @mail($to, $subject, $message, $headers);
前面加上
$subject = "=?UTF-8?B?" . base64_encode($subject) . "?=";
三月 30th, 2006 at 5:41 下午
參考這個 plugin 看看:
http://www.quakemachine.com/blog/php/wordpress/554/