I Have configured the email setting in codeigniter
$config = array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.gmail.com',
'smtp_timeout'=>30,
'smtp_port' => 465,
'smtp_user' => 'XXXXX@gmail.com',
'smtp_pass' => 'XXXXX',
'charset'=>'utf-8',
'mailtype' => 'html',
'newline'=>'\r\n'
);
I have also uncomment in php.ini is
extension=php_openssl.dll
But still now i am getting error is
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: C:\xampp\htdocs\rtd-admin\application\modules\message\controllers\Message.php
Line: 26
Function: send
File: C:\xampp\htdocs\rtd-admin\index.php
Line: 315
Function: require_once
and second error is
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.