發新話題
打印

[PHP] DISCUZ 4 UTF8 SENDMAIL 止咳方法

[PHP] DISCUZ 4 UTF8 SENDMAIL 止咳方法

現在我們的海外論壇 SE 是一個全新的 UTF8 論壇, 及加入一個 iconv() HACK UTF8-BIG5 to BIG5-BIG5 就暫時解決電郵驗證的問題.
複製內容到剪貼板
代碼:
if($mailsend == 1 && function_exists('mail')) {

        $email_message = str_replace("\r", '', $email_message);
        strpos($email_to, ',') ? @mail('Discuz! User <me@localhost>', $email_subject, $email_message, "From: $emai$

// convert to BIG5 START

$email_message = iconv("UTF-8","BIG5",$email_message);

// convert to BIG5 END
iconv() 是不能 Convert UTF8 繁體 + 一些簡体 LOGIN NAME 轉去 BIG5.

解決方法就係修改 emails.lang.php 的 Template. 刪除所有的 $member[username]
發新話題