controller - >
class Email extends CI_Controller {
public function __construct(){
parent::__construct();
}
public function index(){
$mail->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
$config = array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.googlemail.com',
'smtp_port' => 465,
'smtp_user' => 'entertaxibvba@gmail.com',
'smtp_pass' => 'mypass',
'mailtype' => 'html',
'charset' => 'utf-8',
'wordwrap' => TRUE
);
$this->load->library('email', $config);
$this->email->from('entertaxibvba@gmail.com', 'EnterTaxi');
$this->email->to('entertaxibvba@gmail.com');
$this->email->subject('Details nieuwe rit');
$this->email->message('test test test');
$this->email->set_newline("\r\n");
$this->email->send();
show_error($this->email->print_debugger());
}
我已经更改了我的php.ini,关闭了我的防病毒软件,... 但似乎没什么用。
我收到错误说:
fsockopen():SSL操作失败,代码为1. OpenSSL错误消息:
错误:14090086:SSL例程:ssl3_get_server_certificate:certificate
验证失败
我现在只学习编码几个月,所以如果这是一个明显的错误我很抱歉:)
由于