[英]ION AUTH not sending forgot password e-mail
配置文件:
$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'
);
圖書館:
$this->email->set_newline("\r\n");
錯誤:
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)
如何解決此錯誤以及為什么它出現在我的身上? 請幫我。
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.googlemail.com',
'smtp_port' => 465,
'smtp_user' => 'xxx',
'smtp_pass' => 'xxx',
'mailtype' => 'html',
'charset' => 'iso-8859-1'
);
$this->load->library('email', $config);
$this->email->set_newline("\r\n");
// Set to, from, message, etc.
$result = $this->email->send();
還必須啟用SSL:
extension=php_openssl.dll
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.