PHPMailer认证问题xoauth2(PHPMailer authentication issue xoauth2)

编程入门 行业动态 更新时间:2024-10-24 02:38:24
PHPMailer认证问题xoauth2(PHPMailer authentication issue xoauth2)

我正在使用Google Business Apps发送电子邮件,并尝试通过PHPMailer发送电子邮件。 现在SSL证书存在问题,因此我必须关闭SSL验证,但是会出现以下错误:

Auth method requested: XOAUTH2 Auth methods available on the server: PLAIN,LOGIN SMTP Error: Could not authenticate.

现在我的主机并不特别有用,因为它说我需要使用正确的电子邮件/通行证,但这不是它的工作方式,因为我们必须通过Google Developer创建应用程序,并验证连接。

我想知道是否需要将XOAUTH2安装到服务器上? 我有权访问cPanel,但无法找到该模块。

I am using Google Business Apps for emails, and trying to send emails through PHPMailer. Now there is an issue with the SSL certificate so I have to turn off the SSL verification, but this errors is thrown up:

Auth method requested: XOAUTH2 Auth methods available on the server: PLAIN,LOGIN SMTP Error: Could not authenticate.

Now my host isn't particularly helpful as its saying I need to use the correct email/pass, but that's not the way it works as we have to create an App via Google Developer and the connection is verified.

I am wondering if XOAUTH2 needs to be installed to the server? I have access to cPanel, but can't find the module.

最满意答案

阅读错误链接到的故障排除指南 。

我敢打赌,你的ISP正在拦截你的流量,并将你重定向到他们自己的邮件服务器,这将无法匹配gmail的SSL证书,也缺少gmail的XOAUTH2认证方案。

你应该注意为什么你会收到这些错误 - 证书验证是为了保护你,当它没有通过检查时,它告诉你有人拦截你的流量并尝试MITM你 - 并且通过禁用它你已经给出了离开你的gmail凭证。

Read the troubleshooting guide that the error links you to.

I'd bet that your ISP is intercepting your traffic and redirecting you to their own mail server, which will fail to match gmail's SSL certificate, and also lacks gmail's XOAUTH2 authentication scheme.

You should pay attention to why you're getting these errors - certificate verification is there to protect you and when it fails a check it's telling you that someone is intercepting your traffic and trying to MITM you - and by disabling it you've already given away your gmail credentials.

更多推荐

本文发布于:2023-07-06 07:29:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1047334.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:PHPMailer   issue   authentication

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!