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

    <tfoot id='PJOpU'></tfoot>

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

    1. Codeigniter 电子邮件错误处理

      Codeigniter Email error handling(Codeigniter 电子邮件错误处理)
        <bdo id='IEWEY'></bdo><ul id='IEWEY'></ul>

              <tbody id='IEWEY'></tbody>

              <tfoot id='IEWEY'></tfoot>
              • <legend id='IEWEY'><style id='IEWEY'><dir id='IEWEY'><q id='IEWEY'></q></dir></style></legend>

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

                <i id='IEWEY'><tr id='IEWEY'><dt id='IEWEY'><q id='IEWEY'><span id='IEWEY'><b id='IEWEY'><form id='IEWEY'><ins id='IEWEY'></ins><ul id='IEWEY'></ul><sub id='IEWEY'></sub></form><legend id='IEWEY'></legend><bdo id='IEWEY'><pre id='IEWEY'><center id='IEWEY'></center></pre></bdo></b><th id='IEWEY'></th></span></q></dt></tr></i><div id='IEWEY'><tfoot id='IEWEY'></tfoot><dl id='IEWEY'><fieldset id='IEWEY'></fieldset></dl></div>
              • 本文介绍了Codeigniter 电子邮件错误处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                CI Email send() 函数只返回 true 或 false.有没有办法获得发送失败的更详细原因?我正在使用 SMTP.

                The CI Email send() function only returns true or false. Is there a way to get a more detailed reason as to why a sending failed? I'm using SMTP.

                推荐答案

                您可以使用电子邮件调试器进一步检查发生的情况:

                You can further inspect what happened by using the email debugger:

                $r = $this->send(FALSE);
                if (!$r)
                  $this->email->print_debugger()
                  ;
                

                来自 Codeigniter 电子邮件类参考.

                如果您需要将调试器输出为字符串,您可以使用 输出缓冲区:

                If you need the debugger output as a string, you can just catch the output with an output buffer:

                $errors = array();
                ... # Loop
                $r = $this->send(FALSE);
                if (!$r) {
                  ob_start();
                  $this->email->print_debugger();
                  $error = ob_end_clean();
                  $errors[] = $error;
                }
                ... # Loop end
                

                最新版本中的 Codeigniter 需要为 提供明确的 FALSEemail->send()函数的$auto_clear参数,以便不清除消息和调试,如果传递失败有效地杀死调试器函数错误.

                Codeigniter in more recent versions requires an explicit FALSE for the $auto_clear parameter of the email->send() function in order to not clear the message and the debugging, effectively killing the debugger function if you fail to pass the FALSE.

                这篇关于Codeigniter 电子邮件错误处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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 的问题)
                  <tbody id='mONTl'></tbody>
                      <legend id='mONTl'><style id='mONTl'><dir id='mONTl'><q id='mONTl'></q></dir></style></legend>
                    1. <small id='mONTl'></small><noframes id='mONTl'>

                        <tfoot id='mONTl'></tfoot>

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