歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 19, 2024, 01:21:58 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  使用與操作  |  也是亂碼的問題? « 上篇主題 下篇主題 »
頁: 1 [2]
作者 主題: 也是亂碼的問題?  (閱讀 39460 次)
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #15 於: 六月 06, 2005, 10:59:39 下午 »

其實應該把這部分獨立出來才對。放在程式裡在不太好。  傷心

Mark
已記錄

在思緒重疊之前
新手見習
*
文章: 15


檢視個人資料 個人網站
« 回覆文章 #16 於: 六月 07, 2005, 06:49:18 上午 »

你改的是信件標題吧@@"

信件的內容是寫在語系檔裡面 等於使用者註冊的時候 系統會去語系檔抓信件內容的文字 然後匯出到E-MAIL格式的模板裏面寄送出去.. 但是我不知道要怎麼把E-MAIL的內容從語系檔裡面獨立出來...=_=|| ( 重點是我不知道哪個檔案去抓語系裡面的 E-MAIL 內容文字 ) ....O_Q

MARK 老大 能說一下是哪個檔案是 E-MAIL 的模板嗎@@? 實在找不到O_Q
( 獨立的想法是因為 我的PHPBB也是這樣弄來修改 E-MAIL的內容.. )
已記錄

在世界中心呼喊愛 -- オレンジデイス
charlesc
新手見習
*
文章: 30


檢視個人資料 個人網站
« 回覆文章 #17 於: 六月 07, 2005, 08:22:00 上午 »

對啊,我會改信件內文,不會改主旨....help!!!

email確認信是找locale檔裡的
程式碼:
$messages['register_confirmation_email_text'] = 
已記錄

...EVALS TEN 是 我
在思緒重疊之前
新手見習
*
文章: 15


檢視個人資料 個人網站
« 回覆文章 #18 於: 六月 07, 2005, 02:38:23 下午 »

那是由哪格檔案來呼叫他的呢!?
已記錄

在世界中心呼喊愛 -- オレンジデイス
charlesc
新手見習
*
文章: 30


檢視個人資料 個人網站
« 回覆文章 #19 於: 六月 07, 2005, 02:58:01 下午 »

好像好多...

class\summary\mail\confirmemailmessage.class.php

templates\summary\email_confirm.template
程式碼:
{$locale->pr("register_confirmation_email_text", $activeLink)}



class\action\admin\adminaddbloguseraction.class.php
       
程式碼:
function sendNotificationEmail( $userInfo )
        {
            // if everything went fine, we can now send the confirmation email
            // only if the user specified a valid email address
            if( $userInfo->getEmail() != "" ) {
            // build an email message
                $message = new EmailMessage();
                $message->setBody( $this->_notificationText );
                $message->setSubject( "歡迎加入plog" );
                $message->addTo( $userInfo->getEmail());
                $message->setFrom( $this->_userInfo->getEmail());
                // and finally send it
                $emailService = new EmailService();
                $emailService->sendMessage( $message );
            }

            return true;
        }
已記錄

...EVALS TEN 是 我
charlesc
新手見習
*
文章: 30


檢視個人資料 個人網站
« 回覆文章 #20 於: 六月 09, 2005, 09:12:44 下午 »

挖哈,我找到確認信主旨要改哪裡了:

/home/httpd/class/summary/action/dofinishregister.class.php

程式碼:
$message = new ConfirmEmailMessage();
$message->setFrom( $this->_config->getValue( "post_notification_source_address" ));
$message->addTo( $this->userEmail);
$message->setSubject( "pLog user registration confirmation for: ".$this->userName);
$message->setUsername($this->userName);
$message->setActiveCode($activeCode);
已記錄

...EVALS TEN 是 我
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #21 於: 六月 10, 2005, 10:20:14 上午 »

不好意思,一直忙著 moblog 的開發。應該已經告一個段落。

我的想法是把所有系統會寄出的信件獨立出來到站台管理中,這樣比較好設定。另外加上編碼選項。這個應該可以放到 1.1 中。

Mark
已記錄

damonsung
新手見習
*
文章: 1


檢視個人資料
« 回覆文章 #22 於: 十一月 14, 2005, 01:33:10 下午 »

請問一下email charset 是在那個地方?    一直找不到說

p.s我的是1.01版

1.01有提供email charset!

可是,我有問題,email認證信的內容在locale file裡,但是信件主旨,是在哪?
我找到一個/class/action/admin/adminaddbloguseraction.class.php
改了一下,似乎沒用???

        
程式碼:
function sendNotificationEmail( $userInfo )
        {
            // if everything went fine, we can now send the confirmation email
            // only if the user specified a valid email address
            if( $userInfo->getEmail() != "" ) {
             // build an email message
                $message = new EmailMessage();
                $message->setBody( $this->_notificationText );
                $message->setSubject( "歡迎加入部落格" );
                $message->addTo( $userInfo->getEmail());
                $message->setFrom( $this->_userInfo->getEmail());
                // and finally send it
                $emailService = new EmailService();
                $emailService->sendMessage( $message );
            }
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #23 於: 十一月 15, 2005, 10:48:21 上午 »

在 pLog/class/mail/emailservice.class.php,只不過 charset 是依照你設定的語系檔來抓取 charset ...

如果你『一定』要使用 big5 來顯示信件,你有兩個方法可以作:

1. 把語系檔改成 big5,記得裡面的 encoding 也要改成 big5
2. 另一個方式是,在 email service 裡面加入一個判斷式,當 language 是 zh_TW 且 encode 是 utf-8,透過 iconv 或是 mbstring 把信件轉換為 big5 後再寄出。

Mark
已記錄

jameshsi
新手見習
*
文章: 28


檢視個人資料
« 回覆文章 #24 於: 六月 19, 2006, 02:14:35 下午 »

我剛剛也是注意到這問題,雖然一安裝好 Lifetype 就有中文,但是新用戶註冊卻會看到 pLog user registration confirmation 這種看不懂的郵件主旨,或許有人會把他當作垃圾信件刪除呢!
已記錄
lizzie
新手見習
*
文章: 24


檢視個人資料
« 回覆文章 #25 於: 十月 23, 2006, 01:25:31 下午 »

我的lifetype 是1.1 (on server 2003/IIS), 為何認證信的標題也出現亂碼? 明明看到code 有抓charset
已記錄
頁: 1 [2]
LifeType 中文開發論壇  |  支援  |  使用與操作  |  也是亂碼的問題? « 上篇主題 下篇主題 »
    前往: