ci 配置发送邮件 验证密码失败

$this->emailConfig = array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.qq.com',
'smtp_user' => '[email protected]',
'smtp_pass' => 'xxxxxx', //邮箱授权码
'smtp_port' => 465,
'smtp_timeout' => 30,
'_smtp_auth' => TRUE,
'mailtype' => 'html',
'charset' => 'utf-8',
'wordwrap' => TRUE,
'newline' => "\r\n",
'crlf' => "\r\n",
);
邮箱密码服务配置正确,发送邮件是随机
报这个错误 Failed to authenticate password. Error: 535,

添加 这个配置可以解决 '_smtp_auth' => TRUE,

猜你喜欢

转载自www.cnblogs.com/liu201312/p/10916718.html
ci