Post by jaka » Sat Oct 02, 2010 11:55 pm

圖片3.JPG

圖片3.JPG (28.99 KiB) Viewed 6855 times

這是gmail的信箱~
圖片4.JPG

圖片4.JPG (52.9 KiB) Viewed 6855 times

這是SquirrelMail的信箱


我是使用OpenCart Version 1.4.9.1

Apache版本2.2.3
MySQL版本5.0.77
phpMyAdmin - 2.11.11
PHP 5.1.6
網頁:UTF-8
網站:http://www.wallet.com.tw

我之前是使用ECSHOP,
無意間在網路搜尋時,發現這款OPENCART購物車程式,
真是驚為天人,非常簡潔漂亮~


經下載測試後,碰到一個問題:
收到訂單的信件的抬頭是亂碼,信件內容是成常顯示~
請問要如何修改?謝謝!!

JaKa獨賣網|Tokyo Shopping|Namesdomain域名註冊|GoDaddy域名經銷只要59.99美金|視訊美女|


Newbie

Posts

Joined
Sat Oct 02, 2010 11:25 pm

Post by loring » Sun Oct 03, 2010 3:46 pm


OpenCart 中文資源 Blog.Dnono.com


User avatar
New member

Posts

Joined
Mon Jul 26, 2010 2:21 pm


Post by justindavis » Tue Oct 12, 2010 9:22 am

请参考opencart中的mail类替代方案http://www.cartplugins.com/?p=24

Newbie

Posts

Joined
Mon Oct 11, 2010 2:28 pm


Post by thomassabo » Fri Nov 12, 2010 10:47 pm

可能编码有问题吧。

my name is thomas sabo


Newbie

Posts

Joined
Thu Nov 04, 2010 1:58 pm


Post by momonecy » Mon Dec 27, 2010 6:46 pm

請問亂碼問題有解嗎?

我有嘗試用樓上網友提供的 mail类替代方案http://www.cartplugins.com/?p=24

但還是沒有解決咧....

還出現了下列 error



Notice: Undefined variable: to in /raid/vhost/cookingmama.com.tw/www/store/system/library/mail.php on line 191Warning: implode() [function.implode]: Invalid arguments passed in /raid/vhost/cookingmama.com.tw/www/store/system/library/mail.php on line 191Warning: Cannot modify header information - headers already sent by (output started at /raid/vhost/cookingmama.com.tw/www/store/index.php:92) in /raid/vhost/cookingmama.com.tw/www/store/system/engine/controller.php on line 27

可以請教各位該怎麼辦呢?

Newbie

Posts

Joined
Mon Dec 27, 2010 6:37 pm

Post by alex.lin » Tue Dec 28, 2010 12:28 am

请用UltraEdit查看下编码。试着转换为UTF-8格式试试

Opencart Developer

- http://www.cnopencart.com opencart中文站


User avatar
Active Member

Posts

Joined
Thu Jun 03, 2010 12:15 am


Post by momonecy » Tue Dec 28, 2010 3:49 pm

謝謝alex的回覆

我已經check mail.php 確定為UTF-8編碼

but 打開後看了半天, 發現

第55行開始 , 有兩行有關UTF-8 的 前後都有個問號( ?)

這是程式本身所需要的 還是我下載的版本解壓縮後的問題呢? (我摘錄如下)

***********************************************

public function setSender($sender) {
$sender="=?UTF-8?B?".base64_encode($sender)."?=";
$this->sender = $sender;
}


public function setSubject($subject) {
$subject = preg_replace('/(,|:|\.|\"|\'|!|&|-)/s',' ',$subject);
$subject ="=?UTF-8?B?".base64_encode($subject)."?=";
$this->subject = $subject;
}

***********************************************

我用的opencart 版本是從這裡下載的1.4.9.1 版http://blog.dnono.com/

主機商系統環境
PHP版本:5.2.9
Apache版本:2.0.63
MySQL版本:5.1.35
支援元件:GD、Curl、PHP mail、Zend Optimizer

目前使用原本的mail.php 會產生 主旨亂碼問題,
但使用 mail类替代方案http://www.cartplugins.com/?p=24

還是有error....

請賜教..... >_<

Newbie

Posts

Joined
Mon Dec 27, 2010 6:37 pm

Post by chyi » Wed Jan 05, 2011 11:03 pm

http://chyilong.no-ip.info/index.php?ro ... duct_id=52

這個mail.php給你因該可以解決了.我之前也是這樣.
順遍野可以測試一下.我的opencart是否正常

Newbie

Posts

Joined
Wed Jan 05, 2011 3:15 pm
Who is online

Users browsing this forum: No registered users and 79 guests