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

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

      <i id='Skujs'><tr id='Skujs'><dt id='Skujs'><q id='Skujs'><span id='Skujs'><b id='Skujs'><form id='Skujs'><ins id='Skujs'></ins><ul id='Skujs'></ul><sub id='Skujs'></sub></form><legend id='Skujs'></legend><bdo id='Skujs'><pre id='Skujs'><center id='Skujs'></center></pre></bdo></b><th id='Skujs'></th></span></q></dt></tr></i><div id='Skujs'><tfoot id='Skujs'></tfoot><dl id='Skujs'><fieldset id='Skujs'></fieldset></dl></div>
      <tfoot id='Skujs'></tfoot>
      1. GMail fsockopen():使用 Codeigniter 和 XAMPP 的 SSL 操作失败错误

        时间:2024-04-12
      2. <i id='LWuvx'><tr id='LWuvx'><dt id='LWuvx'><q id='LWuvx'><span id='LWuvx'><b id='LWuvx'><form id='LWuvx'><ins id='LWuvx'></ins><ul id='LWuvx'></ul><sub id='LWuvx'></sub></form><legend id='LWuvx'></legend><bdo id='LWuvx'><pre id='LWuvx'><center id='LWuvx'></center></pre></bdo></b><th id='LWuvx'></th></span></q></dt></tr></i><div id='LWuvx'><tfoot id='LWuvx'></tfoot><dl id='LWuvx'><fieldset id='LWuvx'></fieldset></dl></div>
          • <bdo id='LWuvx'></bdo><ul id='LWuvx'></ul>

            <tfoot id='LWuvx'></tfoot>
              • <small id='LWuvx'></small><noframes id='LWuvx'>

                  <legend id='LWuvx'><style id='LWuvx'><dir id='LWuvx'><q id='LWuvx'></q></dir></style></legend>
                    <tbody id='LWuvx'></tbody>
                  本文介绍了GMail fsockopen():使用 Codeigniter 和 XAMPP 的 SSL 操作失败错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  错误消息 1:消息:fsockopen():SSL 操作失败,代码为 1.OpenSSL 错误消息:错误:14090086:SSL 例程:ssl3_get_server_certificate:certificate verify failed

                  Error message 1: Message: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed

                  文件名:libraries/Email.php

                  Filename: libraries/Email.php

                  行号:1962

                  错误消息 2:消息:fsockopen():无法启用加密错误消息 3:消息:fsockopen(): 无法连接到 >ssl://smtp.gmail.com:465(未知错误)

                  Error message 2: Message: fsockopen(): Failed to enable crypto Error message 3: Message: fsockopen(): unable to connect to >ssl://smtp.gmail.com:465 (Unknown error)

                  php.ini: extension=php_openssl.dll ->未注释我试过: openssl.cafile= C:xamppperlvendorlibMozillaCAcacert.pem我试过禁用防火墙我已尝试使用另一个网络

                  php.ini: extension=php_openssl.dll -> uncommented I have tried with: openssl.cafile= C:xamppperlvendorlibMozillaCAcacert.pem I have tried with disabled firewall I have tried with another network

                  Codeigniter PHP 代码:

                  Codeigniter PHP Code:

                  $config = Array(
                          'protocol'  => 'smtp',
                          'smtp_host' => 'ssl://smtp.gmail.com',
                          'smtp_port' => 465,
                          'smtp_user' => 'asd@gmail.com',
                          'smtp_pass' => 'asd',
                          'mailtype'  => 'html',
                          'charset'   => 'utf-8'
                      );
                  
                      $this->load->library('email', $config);
                      $this->email->set_newline("
                  ");
                  
                      $this->email->from('1@gmail.com', 'asd');
                      $this->email->to($recipient);
                  
                      $this->email->subject($a);
                      $this->email->message($b);
                  
                      $this->email->send();
                  

                  推荐答案

                  在我的例子中,Avast Antivirus 阻止了端口.我使用 SMTP 端口 465 从我的 CodeIgniter 项目发送电子邮件.它显示了一个错误:

                  In my case, the Avast Antivirus was blocking the port. I was using the SMTP port 465 for sending an email from my CodeIgniter project. It showed an error:

                  fsockopen() 未能启用加密

                  只需禁用 Avast Antivirus 即可解决问题.

                  Simply disabling the Avast Antivirus solved the problem.

                  但如果您想保持 Avast 安全,您应该:

                  But if you want to keep your Avast security on, you should:

                  • 打开 Avast

                  • Open Avast

                  点击设置(页面右上角)

                  点击疑难解答

                  点击重定向设置

                  重定向设置MAIL部分清除您使用的端口

                  Clear the port you used from Redirect Settings's MAIL section

                  点击确定

                  关闭 Avast

                  这篇关于GMail fsockopen():使用 Codeigniter 和 XAMPP 的 SSL 操作失败错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:登录后我的 php 会话一直丢失 下一篇:XAMPP 在 Windows 上的 PHP 运行速度太慢了 100 倍

                  相关文章

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

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

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