| แก้ปัญหา smf 1.x.x ส่งหัวข้อเมลเข้า hotmail yahoo อ่านภาษาไทยไม่ได้ ปัญหามาจาก smf เองได้ใช้วิธีแทนที่ข้อความ (หัวข้ออีเมลที่เราส่ง) ไปใ้ห้กับที่อยู่เมลเราเช่น hotmail, yahoo ซึ่งข้อความที่ได้ก็จะเป็นประมาณนี้ ยินดีต้อน ทางแก้ 1. เปิดไฟล์ Sources/Subs-Post.php หาข้อความ // Sadly Hotmail & Yahoomail don't support character sets properly. 2. ใส่เครื่องหมาย /* หลัง บรรทัดที่หน้าเจอ 3. หาข้อความ // Get rid of slashes and entities.4. ใส่เครื่องหมาย /* ก่อน บรรทัดที่หาเจอ จะได้โค้ดโดยรวมตามตัวอย่าง // Sadly Hotmail & Yahoomail don't support character sets properly. /* if ($hotmail_fix === null) { $hotmail_to = array(); foreach ($to_array as $i => $to_address) { if (preg_match('~@(yahoo|hotmail)\.[a-zA-Z\.]{2,6}$~i', $to_address) === 1) { $hotmail_to[] = $to_address; $to_array = array_diff($to_array, array($to_address)); } } // Call this function recursively for the hotmail addresses. if (!empty($hotmail_to)) $mail_result = sendmail($hotmail_to, $subject, $message, $from, $message_id, $send_html, $priority, true); // The remaining addresses no longer need the fix. $hotmail_fix = false; // No other addresses left? Return instantly. if (empty($to_array)) return $mail_result; } */ // Get rid of slashes and entities.
|
เขียนโดย ส่งเมล วันศุกร์ที่ 08 กรกฏาคม 2011 เวลา 11:50 น.
, phpBB3, SMF, Joomla, Wordpress, CMS CRM
, JavaScript & Jquery Ajax
, SQL - Database
, ถาม - ตอบ คอมพิวเตอร์
, PHP Knowledge
, PHP News
, HTML CSS
, Free PHP Code Download script
, Web Hosting Review - Free Host Share Host VPS