i made the change, and this happen
A PHP Error was encountered
Severity: Warning
Message: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines
sl3_get_server_certificate:certificate verify failed
Filename: libraries/Email.php
Line Number: 2063
Backtrace:
File: C:\xampp\htdocs\rest\application\controllers\Email.php
Line: 69
Function: send
File: C:\xampp\htdocs\rest\application\libraries\REST_Controller.php
Line: 742
Function: call_user_func_array
File: C:\xampp\htdocs\rest\index.php
Line: 315
Function: require_once
the new configuration
PHP Code:
public function send_get()
{
//configuracion para gmail
$config = array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.gmail.com',
'smtp_port' => 465,
'mailtype' => 'html',
'smtp_user' => '',
'smtp_pass' => '',
'newline' => "\r\n",
);
//Load email library
$this->load->library('email',$config);
$this->email->set_newline("\r\n");
$this->email->from('', '');
$this->email->to('');
$this->email->subject(' Visitor');
$this->email->message('Testing the email class.');
if($this->email->send()){
echo "your email was sent";
}
else {
show_error($this->email->print_debugger());
}
}