Config File:
$config['use_ci_email'] = TRUE;
$config['email_config'] = array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.googlemail.com',
'smtp_port' => 465,
'smtp_user' => 'Myt E-mail Address',
'smtp_pass' => 'My Correct Password',
'mailtype' => 'html',
'charset' => 'UTF-8'
);
Library:
$this->email->set_newline("\r\n");
Error:
fsockopen(): Peer certificate CN=`l2.iserverplanet.net' did not match expected CN=`smtp.googlemail.com'
fsockopen(): Failed to enable crypto
fsockopen(): unable to connect to ssl://smtp.googlemail.com:465 (Unknown error)
How can I resolve This Error and why it appearing to me? Please help me.