แก้ปัญหา smf 1.x.x ส่งหัวข้อเมลเข้า hotmail yahoo อ่านภาษาไทยไม่ได้
ปัญหามาจาก smf เองได้ใช้วิธีแทนที่ข้อความ (หัวข้ออีเมลที่เราส่ง) ไปใ้ห้กับที่อยู่เมลเราเช่น hotmail, yahoo ซึ่งข้อความที่ได้ก็จะเป็นประมาณนี้
ยินดีต้อ&#3609
ทางแก้
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.

กระทู้ล่าสุดจากเว็บบอร์ด
หัวข้อกระทู้
ตอบ
เปิดดู
ล่าสุด
ชุดข้อต่อ Servo Bracket เป็นโลหะวัสดุทนมาก ไว้ใช้คู่กับ Servo สำหรับทำแขนหมุน
โดย mindphp อ 31 ธ.ค. 2023 8:26 pm บอร์ด IOT - Internet of things
0
1477
อ 31 ธ.ค. 2023 8:26 pm โดย mindphp View Topic ชุดข้อต่อ Servo Bracket เป็นโลหะวัสดุทนมาก  ไว้ใช้คู่กับ Servo สำหรับทำแขนหมุน
วงจรลดแรงดัน แบบมีหน้าจอแสดงกำลังไฟฟ้า - LM2596 DC-DC Buck Converter Step Down Module Arduino
โดย mindphp อ 31 ธ.ค. 2023 8:24 pm บอร์ด IOT - Internet of things
0
1486
อ 31 ธ.ค. 2023 8:24 pm โดย mindphp View Topic วงจรลดแรงดัน แบบมีหน้าจอแสดงกำลังไฟฟ้า - LM2596 DC-DC Buck Converter Step Down Module Arduino
บอร์ด UNO R3 แบบ SMD ราคาต่ำกว่าสองร้อย
โดย mindphp อ 31 ธ.ค. 2023 8:04 pm บอร์ด IOT - Internet of things
1
1463
อ 31 ธ.ค. 2023 8:06 pm โดย mindphp View Topic บอร์ด UNO R3 แบบ SMD  ราคาต่ำกว่าสองร้อย
แนะนำ ISD1820 โมดูลบันทึกเสียง Arduino ใช้ได้กับ ESP8266 ESP32
โดย mindphp อ 31 ธ.ค. 2023 8:02 pm บอร์ด IOT - Internet of things
0
1439
อ 31 ธ.ค. 2023 8:02 pm โดย mindphp View Topic แนะนำ ISD1820 โมดูลบันทึกเสียง Arduino ใช้ได้กับ ESP8266 ESP32
ทำไมทำ Wordpress บน localwp มันช้าครับ ช้ากว่าทำบนโฮสต์จริง
โดย Anonymous อ 31 ธ.ค. 2023 4:20 pm บอร์ด สอบถามปัญหาการใช้ phpBB3, SMF, Joomla, Wordpress, CMS, CRM
0
432
อ 31 ธ.ค. 2023 4:20 pm โดย บุคคลทั่วไป View Topic ทำไมทำ Wordpress บน localwp มันช้าครับ ช้ากว่าทำบนโฮสต์จริง
ลดหย่อนภาษีได้ปี 67 สูงสุด 50,000 มีเงือนไขอย่างไรมาดุ
โดย Anonymous อ 31 ธ.ค. 2023 10:37 am บอร์ด ถาม - ตอบ ธุรกิจ กฏหมาย ภาษี บัญชี
0
434
อ 31 ธ.ค. 2023 10:37 am โดย บุคคลทั่วไป View Topic ลดหย่อนภาษีได้ปี 67 สูงสุด 50,000 มีเงือนไขอย่างไรมาดุ
เซ็นเซอร์ตรวจจับเสียง เอาไปใช้ทำอะไรได้บ้าง ทำโปรเจ็ค IOT
โดย Anonymous ส 30 ธ.ค. 2023 4:28 am บอร์ด IOT - Internet of things
2
835
ส 30 ธ.ค. 2023 10:48 pm โดย mindphp View Topic เซ็นเซอร์ตรวจจับเสียง เอาไปใช้ทำอะไรได้บ้าง ทำโปรเจ็ค IOT
มีเว็บที่เปิดเป็น localhost ใช้งานได้อยู่ มีวิธีไหนบ้างครับ ที่จะทำให้คนเข้าถึงออนไลน์ได้
โดย Anonymous ส 30 ธ.ค. 2023 4:18 am บอร์ด Programming - PHP
1
404
ส 30 ธ.ค. 2023 10:47 pm โดย mindphp View Topic มีเว็บที่เปิดเป็น localhost ใช้งานได้อยู่ มีวิธีไหนบ้างครับ ที่จะทำให้คนเข้าถึงออนไลน์ได้