久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<legend id='bi0XH'><style id='bi0XH'><dir id='bi0XH'><q id='bi0XH'></q></dir></style></legend><tfoot id='bi0XH'></tfoot>
    <bdo id='bi0XH'></bdo><ul id='bi0XH'></ul>

      <small id='bi0XH'></small><noframes id='bi0XH'>

    1. <i id='bi0XH'><tr id='bi0XH'><dt id='bi0XH'><q id='bi0XH'><span id='bi0XH'><b id='bi0XH'><form id='bi0XH'><ins id='bi0XH'></ins><ul id='bi0XH'></ul><sub id='bi0XH'></sub></form><legend id='bi0XH'></legend><bdo id='bi0XH'><pre id='bi0XH'><center id='bi0XH'></center></pre></bdo></b><th id='bi0XH'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='bi0XH'><tfoot id='bi0XH'></tfoot><dl id='bi0XH'><fieldset id='bi0XH'></fieldset></dl></div>

        來(lái)自 PHP 的電子郵件已破壞主題標(biāo)頭編碼

        Email from PHP has broken Subject header encoding(來(lái)自 PHP 的電子郵件已破壞主題標(biāo)頭編碼)
              <tbody id='3lopT'></tbody>
          • <tfoot id='3lopT'></tfoot>
          • <small id='3lopT'></small><noframes id='3lopT'>

                  <bdo id='3lopT'></bdo><ul id='3lopT'></ul>

                • <legend id='3lopT'><style id='3lopT'><dir id='3lopT'><q id='3lopT'></q></dir></style></legend>

                  <i id='3lopT'><tr id='3lopT'><dt id='3lopT'><q id='3lopT'><span id='3lopT'><b id='3lopT'><form id='3lopT'><ins id='3lopT'></ins><ul id='3lopT'></ul><sub id='3lopT'></sub></form><legend id='3lopT'></legend><bdo id='3lopT'><pre id='3lopT'><center id='3lopT'></center></pre></bdo></b><th id='3lopT'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3lopT'><tfoot id='3lopT'></tfoot><dl id='3lopT'><fieldset id='3lopT'></fieldset></dl></div>
                  本文介紹了來(lái)自 PHP 的電子郵件已破壞主題標(biāo)頭編碼的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我的 PHP 腳本向用戶(hù)發(fā)送電子郵件,當(dāng)電子郵件到達(dá)他們的郵箱時(shí),主題行 ($subject) 的末尾添加了類(lèi)似 a^£ 的字符我的主題文本.這顯然是編碼問(wèn)題.電子郵件內(nèi)容本身沒(méi)問(wèn)題,只是主題行壞了.

                  My PHP script sends email to users and when the email arrives to their mailboxes, the subject line ($subject) has characters like a^£ added to the end of my subject text. This is obviously and encoding problem. The email message content itself is fine, just the subject line is broken.

                  我搜索了很多遍,但找不到如何正確編碼我的主題.

                  I have searched all over but can’t find how to encode my subject properly.

                  這是我的標(biāo)題.請(qǐng)注意,我將 Content-Typecharset=utf-8Content-Transfer-Encoding: 8bit 一起使用.

                  This is my header. Notice that I’m using Content-Type with charset=utf-8 and Content-Transfer-Encoding: 8bit.

                  //set all necessary headers
                  $headers = "From: $sender_name<$from>
                  ";
                  $headers .= "Reply-To: $sender_name<$from>
                  ";
                  $headers .= "X-Sender: $sender_name<$from>
                  ";
                  $headers .= "X-Mailer: PHP4
                  "; //mailer
                  $headers .= "X-Priority: 3
                  "; //1 UrgentMessage, 3 Normal
                  $headers .= "MIME-Version: 1.0
                  ";
                  $headers .= "X-MSMail-Priority: High
                  ";
                  $headers .= "Importance: 3
                  ";
                  $headers .= "Date: $date
                  ";
                  $headers .= "Delivered-to: $to
                  ";
                  $headers .= "Return-Path: $sender_name<$from>
                  ";
                  $headers .= "Envelope-from: $sender_name<$from>
                  ";
                  $headers .= "Content-Transfer-Encoding: 8bit
                  ";
                  $headers .= "Content-Type: text/plain; charset=UTF-8
                  ";
                  

                  推薦答案

                  更新 有關(guān)更實(shí)用和最新的答案,請(qǐng)查看 帕萊克的回答.

                  Update???For a more practical and up-to-date answer, have a look at Palec’s answer.

                  Content-Type 中指定的字符編碼只描述了消息體的字符編碼,而不描述消息頭的字符編碼.您需要使用編碼字語(yǔ)法 使用 quoted-printable 編碼 或 Base64 編碼:

                  The specified character encoding in Content-Type does only describe the character encoding of the message body but not the header. You need to use the encoded-word syntax with either the quoted-printable encoding or the Base64 encoding:

                  encoded-word = "=?" charset "?" encoding "?" encoded-text "?="
                  

                  您可以將 imap_8bit 用于 quoted-printableem> 編碼和 base64_encode 用于 Base64 編碼:

                  You can use imap_8bit for the quoted-printable encoding and base64_encode for the Base64 encoding:

                  "Subject: =?UTF-8?B?".base64_encode($subject)."?="
                  "Subject: =?UTF-8?Q?".imap_8bit($subject)."?="
                  

                  這篇關(guān)于來(lái)自 PHP 的電子郵件已破壞主題標(biāo)頭編碼的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動(dòng)游標(biāo)不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術(shù)方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個(gè)值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅(qū)動(dòng)程序)
                    • <small id='bcmJi'></small><noframes id='bcmJi'>

                        <tbody id='bcmJi'></tbody>

                            <bdo id='bcmJi'></bdo><ul id='bcmJi'></ul>
                            <legend id='bcmJi'><style id='bcmJi'><dir id='bcmJi'><q id='bcmJi'></q></dir></style></legend>
                            <tfoot id='bcmJi'></tfoot>

                            <i id='bcmJi'><tr id='bcmJi'><dt id='bcmJi'><q id='bcmJi'><span id='bcmJi'><b id='bcmJi'><form id='bcmJi'><ins id='bcmJi'></ins><ul id='bcmJi'></ul><sub id='bcmJi'></sub></form><legend id='bcmJi'></legend><bdo id='bcmJi'><pre id='bcmJi'><center id='bcmJi'></center></pre></bdo></b><th id='bcmJi'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='bcmJi'><tfoot id='bcmJi'></tfoot><dl id='bcmJi'><fieldset id='bcmJi'></fieldset></dl></div>

                          • 主站蜘蛛池模板: 久久精品一区二区 | 免费的色网站 | 婷婷色成人 | www.色午夜.com | 一区免费看 | 欧美精品一区久久 | 懂色中文一区二区在线播放 | 国产免费一区 | 精品无码久久久久久久动漫 | 国产成人精品a视频 | 国产精品久久久久国产a级 欧美日本韩国一区二区 | 九九视频在线观看 | 中文字幕色站 | 精品久久久久久久久久久下田 | 日韩精品在线一区 | 国产精品完整版 | 午夜免费看 | 韩国av网站在线观看 | 国产一区91精品张津瑜 | 免费视频中文字幕 | 综合一区二区三区 | www.久久久 | 国产在线观| 国产精品一区二区三 | 一区二区中文字幕 | 日韩久久久久久 | 精品视频在线免费观看 | 国产在线一区二区 | 欧美11一13sex性hd | 久久香蕉网 | 欧美在线不卡 | 国产精品一区二区久久精品爱微奶 | 夜夜爽99久久国产综合精品女不卡 | 久久久久久国产精品久久 | a毛片视频网站 | 激情视频一区 | 一级高清 | 欧美一级电影免费观看 | 久热爱| 国产探花在线精品一区二区 | aaa精品 |