本文介绍了通过Gmail SMTP发送电子邮件时出错-“请通过网络浏览器登录,然后重试. 534-5.7.14";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在gmail smtp服务器上遇到问题.我已经在StackOverflow上阅读了很多有关该主题的文章.

I'm having problems with gmail smtp server. I already read many posts here in StackOverflow about that subject.

我发现有关测试连接的最佳文章是这个.

The best post I found about test the connection is this one.

尽管很好地解释了我遇到的错误,但我找不到答案:Google SMTP只是说请通过网络浏览器登录,然后重试".我完全确定密码和电子邮件(均在base64中)均已正确编码.

Although it is very well explained the error I'm getting I couldn't find a answer:Google SMTP just says "Please log in via your web browser and then try again". I'm completely sure that the password and the email (both in base64) are well encoded.

如您所见,在此图像中:

As you can see here, in this image:

我可以注意到只有一个区别:user@gmail.com和密码分两步发送.在上面的链接中,家伙同时发送两个消息. Google不接受.但事实是,我写验证登录Y29udGF0 ...(使用base64的用户,Google响应:)第334章(表示密码:")YzQ2MjJmNWVi ....(将我的密码粘贴到base64中,然后单击输入")

there is just one difference I can notice: the user@gmail.com and password is sent in two steps. In the link above the guy sends both at the same time. Google didn't accepted that.But the fact is, I writeauth login Y29udGF0...(user in base64, googles responds: )334 UGFzc3dvcmQ6(wich means "Password: ")YzQ2MjJmNWVi.... (paste my password in base64 and hit "enter")

然后Goggle说: 请通过网络浏览器登录,然后重试.534-5.7.14了解更多信息,请访问 https://support.google.com/mail/answer/7126229

Then Goggle says: Please log in via your web browser and then try again.534-5.7.14 Learn more at https://support.google.com/mail/answer/7126229

我正在解决所有这些问题,因为@MediaTemple和@DreamHost无法与PHPMailer一起使用.很久以前,我已经在许多不同的主机中使用SMTP使用PHPMailer,但使用SMTP却失败了,但(mt)和Dreamhost失败了.现在,我处于一个项目中,该项目必须<<在这两个主机上工作.

And I'm going through all this problem because @MediaTemple and @DreamHost are not working with PHPMailer. I already use PHPMailer for a long time ago, in so many different hosts, using SMTP but failed with (mt) and Dreamhost. Now I'm in middle of a project that it >must< work on these two hosts.

推荐答案

我知道这是一个较旧的问题,但是尽管尝试了DisplayUnlockCaptcha修复,但我最近遇到了同样的问题,并且在解决该问题时遇到了问题.这就是我活着的方式.

I know this is an older issue, but I recently had the same problem and was having issues resolving it, despite attempting the DisplayUnlockCaptcha fix. This is how I got it alive.

转到帐户安全设置( https://www.google.com/settings/security /lesssecureapps )并启用访问安全性较低的应用程序",这样您就可以将google smtp用于官方客户端以外的其他客户端.

Head over to Account Security Settings (https://www.google.com/settings/security/lesssecureapps) and enable "Access for less secure apps", this allows you to use the google smtp for clients other than the official ones.

更新

Google非常善良,可以列出所有可能的问题并为我们解决.尽管我建议尝试使用安全性较低的应用设置.确保将它们应用于正确的帐户.

Google has been so kind as to list all the potential problems and fixes for us. Although I recommend trying the less secure apps setting. Be sure you are applying these to the correct account.

这篇关于通过Gmail SMTP发送电子邮件时出错-“请通过网络浏览器登录,然后重试. 534-5.7.14";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-05 02:06