简体   繁体   中英

Enable ssl_module at wampserver

when i enabled ssl_module, apache always not working if i disable ssl_module

#LoadModule ssl_module modules/mod_ssl.so

my wampserver will work again.

i try sending mail using gmail via localhost & CodeIgniter, and i got this error:

A PHP Error was encountered

Severity: Warning

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

Filename: libraries/Email.php

Line Number: 2063

Backtrace:

File: D:\\wamp64\\www\\TracerStudy\\application\\controllers\\regis.php Line: 128 Function: send

File: D:\\wamp64\\www\\TracerStudy\\index.php Line: 315 Function: require_once

-- Update -- I got this Error:

Severity: Warning

Message: fsockopen(): php_network_getaddresses: getaddrinfo failed: No such host is known.

my Code :

$config = Array(
          'protocol' => 'smtp',
          'smtp_host' => 'ssl://smtp.googlemail.com',
          'smtp_port' => 465,
          'smtp_user' => 'mymail', 
          'smtp_pass' => 'mypassword', 
          'mailtype' => 'html',
          'charset' => 'iso-8859-1',
          'smtp_crypto' => 'ssl',
          'wordwrap' => TRUE
        );

        $this->load->library('email', $config);
        $this->email->set_newline("\r\n");
        $this->email->from('myemail');
        $this->email->to('sendemail'); 
        $this->email->subject('subject');
        $this->email->message('message');
        if($this->email->send())
        {
          echo 'Email sent.';
        }
        else
        {
          show_error($this->email->print_debugger());
        }

禁用您的防病毒软件...它解决了我的问题

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM