<tfoot id='8qQmx'></tfoot>
      • <bdo id='8qQmx'></bdo><ul id='8qQmx'></ul>
      <i id='8qQmx'><tr id='8qQmx'><dt id='8qQmx'><q id='8qQmx'><span id='8qQmx'><b id='8qQmx'><form id='8qQmx'><ins id='8qQmx'></ins><ul id='8qQmx'></ul><sub id='8qQmx'></sub></form><legend id='8qQmx'></legend><bdo id='8qQmx'><pre id='8qQmx'><center id='8qQmx'></center></pre></bdo></b><th id='8qQmx'></th></span></q></dt></tr></i><div id='8qQmx'><tfoot id='8qQmx'></tfoot><dl id='8qQmx'><fieldset id='8qQmx'></fieldset></dl></div>
      <legend id='8qQmx'><style id='8qQmx'><dir id='8qQmx'><q id='8qQmx'></q></dir></style></legend>

      1. <small id='8qQmx'></small><noframes id='8qQmx'>

        PHP 发送的邮件有 =0A=0A 而不是换行

        PHP sent emails have =0A=0A instead of new lines(PHP 发送的邮件有 =0A=0A 而不是换行)
          • <legend id='8yjh1'><style id='8yjh1'><dir id='8yjh1'><q id='8yjh1'></q></dir></style></legend>
            <i id='8yjh1'><tr id='8yjh1'><dt id='8yjh1'><q id='8yjh1'><span id='8yjh1'><b id='8yjh1'><form id='8yjh1'><ins id='8yjh1'></ins><ul id='8yjh1'></ul><sub id='8yjh1'></sub></form><legend id='8yjh1'></legend><bdo id='8yjh1'><pre id='8yjh1'><center id='8yjh1'></center></pre></bdo></b><th id='8yjh1'></th></span></q></dt></tr></i><div id='8yjh1'><tfoot id='8yjh1'></tfoot><dl id='8yjh1'><fieldset id='8yjh1'></fieldset></dl></div>

            <tfoot id='8yjh1'></tfoot>
              <tbody id='8yjh1'></tbody>
            1. <small id='8yjh1'></small><noframes id='8yjh1'>

                • <bdo id='8yjh1'></bdo><ul id='8yjh1'></ul>
                • 本文介绍了PHP 发送的邮件有 =0A=0A 而不是换行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  一段时间以来,我遇到了一些用户收到 =0A=0A 而不是我通过 PHP 发送给他们的电子邮件中的新行的问题.通过电子邮件客户端的通信效果很好,但 PHP 生成的电子邮件对于某些用户(少数)来说总是这样.谷歌搜索没有发现像样的结果,所有搜索结果似乎都以某种方式与 Outlook 相关 - 认为所有 Outlook 用户都会遇到这个问题是不可接受的.有谁知道处理这个问题和避免这些新行编码问题的正确方法吗?

                  For some time now I've had the problem of some of my users getting =0A=0A instead of new lines in emails I send to them via PHP. Correspondence via email client works well, but PHP generated emails always look like this with some users (a minority). Googling revealed no decent results, all search results seem to be connected with outlook somehow - and it is unacceptable to think that all outlook users would suffer from this problem. Does anyone know a correct way of handling this and avoiding these new line encoding issues?

                  仅供参考,我正在使用 Zend 的 Mailer 类.

                  FYI I'm using Zend's Mailer class.

                  谢谢

                  编辑 2:

                  更改编码类型无效.我将标头编码为 base64,将正文编码为 64,结果出现乱码.然后我尝试使用 base64 标头,并在正文上执行 base64_decode(base64_decode($body)) ,这在用户的CNR 服务器但不在收件箱中"上很好,无论这意味着什么.当我尝试将 mb_convert_encoding 转换为 base64 时,我再次得到了编码字符串而不是正文,所以没有用.

                  Changing the encoding type did not work. I encoded the headers to base64, and the body to 64, got garbled stuff. Then I tried with base64 headers, and did base64_decode(base64_decode($body)) on the body, and that was fine on the user's "CNR Server but not in the inbox" whatever that means. When I tried mb_convert_encoding to base64, I got the encoded string instead of the body again, so no use.

                  我还能尝试什么?Zend Mailer 仅支持 Quoted Printable 和 Base64 标头编码.不知道如何处理正文以匹配引用的可打印编码...

                  What else can I try? Zend Mailer only supports Quoted Printable and Base64 header encoding. Not sure what to do to the body for it to match the quoted printable encoding...

                  推荐答案

                  电子邮件正文已使用 quoted-printable - 但邮件中声明的 mime 类型是 text/html(或 text/plain 或 undefined).

                  The email body has been encoded using quoted-printable - but the mime type declared in the email is text/html (or text/plain or undefined).

                  如何使电子邮件正文的编码与 MIME 标头匹配取决于您.

                  How you make the encoding of the body of the email match the mime header is up to you.

                  这篇关于PHP 发送的邮件有 =0A=0A 而不是换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                    <bdo id='TdW2K'></bdo><ul id='TdW2K'></ul>

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

                    <tfoot id='TdW2K'></tfoot>

                      <legend id='TdW2K'><style id='TdW2K'><dir id='TdW2K'><q id='TdW2K'></q></dir></style></legend>
                    • <i id='TdW2K'><tr id='TdW2K'><dt id='TdW2K'><q id='TdW2K'><span id='TdW2K'><b id='TdW2K'><form id='TdW2K'><ins id='TdW2K'></ins><ul id='TdW2K'></ul><sub id='TdW2K'></sub></form><legend id='TdW2K'></legend><bdo id='TdW2K'><pre id='TdW2K'><center id='TdW2K'></center></pre></bdo></b><th id='TdW2K'></th></span></q></dt></tr></i><div id='TdW2K'><tfoot id='TdW2K'></tfoot><dl id='TdW2K'><fieldset id='TdW2K'></fieldset></dl></div>
                              <tbody id='TdW2K'></tbody>