使用phpmailer发送smtp邮件时提示 SMTP Error: Could not authenticate 错误

使用phpmailer发送smtp邮件时提示 SMTP Error: Could not authenticate 错误

这个错误是验证出现错误,php

$mail->Port = 25; //SMTP服务器的端口号
$mail->Host = "smtp.163.com"; ///SMTP服务器
$mail->Username = "123456@163.com"; //SMTP服务器用户名
$mail->Password = "123456"; //SMTP服务器密码服务器

SMTP服务器用户名和密码不可以验证,这里用户名就是你的163账号,全称,密码是你设置的受权码,不是你的登陆密码,登录

相关文章
相关标签/搜索