finimej Posted April 19, 2007 Posted April 19, 2007 Hi, After moved to another server, the checkout_success.php send out email become completed unreadable. I am using the UTF-8 charset. It seems the oscommerce doubled encoding the mail. I tried "send out email" from admin-Tools-> send out email, then it is readable. However, the oscommerce select from the database and send out the email, it become following unreadable junk. Any help is highly appreciated. 6Z+z6aKR5bqU55So6K6+5aSH5LiT5Y2WDQoKLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQoK6K6i5Y2V5Y+377yaIDA3LzA0LzkNCgrkuIvljZXm l6XmnJ/vvJogMjAwN+W5tC0wNOaciC0yMOaXpQ0KCg0KCuWVhuWTgQ0KCi0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KCjEgeCBFU0kgUm9NSU8g KCkgPSDnlLXor53mn6Xpl67ku7fmoLwhDQoKLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQoK5oC76K6hOiAwLjAw5YWDDQoKDQoK6YCB6LSn5Zyw 5Z2ADQoKLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tDQoKc3RlbGxhIGZyZWRvDQoK57qi5pif5LiD6KGXOOWPtw0KCuWwj+WMug0KCuWMl+S6rOW4 giwgNjY2NjQwDQoKQkUsIGNoaW5hDQoKDQoK5biQ5Y2V5Zyw5Z2ADQoKLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQoKc3RlbGxhIGZyZWRvDQoK 57qi5pif5LiD6KGXOOWPtw0KCuWwj+WMug0KCuWMl+S6rOW4giwgNjY2NjQwDQoKQkUsIGNoaW5h DQoKDQoK5LuY5qy+5pa55byPDQoKLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tDQoK6ZO26KGM5rGH5qy+DQoKDQoK5qy+5Yiw5oiR5aSE77yM5oiR 5Lus6ams5LiK5Y+R6LSn44CC6K+35oqK5qy+5rGH5Yiw5oiR5Lus55qE6ZO26KGM6LSm5Y+3OiA1 MTI0IDI1NzUgNTU0NCA0NDQzDQoK5pS25qy+5Lq6OiDluK3lvaQNCgrpk7booYzlkI3lrZc6ICAg IOaLm+WVhumTtuihjA0KCg0KCuWFtuS7lumXrumimOivt+eci++8jOmCrui0reS6i+WunOWSjOiB lOe7nOaIkeS7rC4NCgoNCgoNCg==
finimej Posted April 19, 2007 Author Posted April 19, 2007 I put the mysql_query("set names 'UTF8'"); in the application_top.php, still mails out the same unreadable junk. I think the problem may be in general tep_mail function, therefore I changed there as shown below, however, it still mails out the unreadable junk. It must be oscommerce double encoding somewhere, any one can point a way out for me please? function tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address) { if (SEND_EMAILS != 'true') return false; if (defined('EMAIL_CHARSET')) { $emailcharset = (EMAIL_CHARSET=='GB2312' ? "GBK" : EMAIL_CHARSET ); $email_subject = iconv("UTF-8",$emailcharset,$email_subject); $to_name = iconv("UTF-8",$emailcharset,$to_name); $from_email_name = iconv("UTF-8",$emailcharset,$from_email_name); $email_text = iconv("UTF-8",$emailcharset,$email_text); } // Instantiate a new mail object $message = new email(array('X-Mailer: osCommerce Mailer'),$language); // Build the text version $text = strip_tags($email_text); if (EMAIL_USE_HTML == 'true') { $message->add_html($email_text, $text); } else { $message->add_text($text); } // Send message $message->build_message(); $message->send($to_name, $to_email_address, $from_email_name, $from_email_address, $email_subject); }
grspec Posted May 14, 2007 Posted May 14, 2007 I think I have the same problem, my orders and messages sent from the store are completely unreadable and appear likes yours above. Anyone?
grspec Posted May 14, 2007 Posted May 14, 2007 I just checked the emails with another client and they appeared fine. Perhaps you can try the same?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.