SMTP错误:无法进行身份验证。无法发送消息。 Gmail安全警报

时间:2018-02-07 10:31:58

标签: php yii2 smtp phpmailer mail-server

我们遇到错误 SMTP错误:无法进行身份验证。! 注册时我粘贴了ajax调用的确切响应

<script src="https://cdn.dwolla.com/1/dwolla.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<html>
<body>
<h2>Hello World!</h2>
<form method="post" action="control">
Username: <input type="text" id="username" name="username">
Password: <input type="password" id="password pname=">
<input type="submit" value="Sign In">
<script>
    var token = localStorage.getItem("jwt").toString();
    // Here how can I add this token to request header with axios?
</script>
</form>
</body>
</html>

成功消息清楚地表明我们的代码中没有任何错误?其次不太安全的选项也是开启,这是我的代码

SMTP Error: Could not authenticate.{"success":true}  

注意: 可能是问题的原因也许这会有所帮助。

当我登录我的gamil帐户并看到这几封电子邮件时,我的朋友在其他国家,并尝试从电子邮件帐户登录 这是图片

enter image description here

提前感谢您的回复

2 个答案:

答案 0 :(得分:1)

我认为您使用的是端口号25 ..请使用端口号465或587.可能会有效。

答案 1 :(得分:1)

你必须587端口,tls方法使用端口587和ssl使用端口465。 在端口号

中尝试587
相关问题