通过Gmail SMTP发送电子邮件时出错-“请通过网络浏览器登录,然后重试. 534-5.7.14"; [英] Getting error while sending email through Gmail SMTP - "Please log in via your web browser and then try again. 534-5.7.14"

查看:1100
本文介绍了通过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 write auth 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的网络版本通过 https://mail.google.com 登录到您的帐户.登录后,请尝试登录
    再次访问邮件应用.
  • 访问 http://www.google.com/accounts/DisplayUnlockCaptcha 并使用您的Gmail用户名和密码.如果询问,请输入
    扭曲的图片中的字母.
  • 您的应用程序可能不支持最新的安全标准.尝试将一些设置更改为允许安全性较低的应用访问您的 帐户.
  • 确保您的邮件应用未设置为过于频繁地检查新电子邮件.如果您的邮件应用每10次检查新邮件不止一次
    分钟之内,该应用程序对您帐户的访问权限可能会被阻止.
  • If you've turned on 2-Step Verification for your account, you might need to enter an App password instead of your regular password.
  • Sign in to your account from the web version of Gmail at https://mail.google.com. Once you’re signed in, try signing in
    to the mail app again.
  • Visit http://www.google.com/accounts/DisplayUnlockCaptcha and sign in with your Gmail username and password. If asked, enter the
    letters in the distorted picture.
  • Your app might not support the latest security standards. Try changing a few settings to allow less secure apps access to your account.
  • Make sure your mail app isn't set to check for new email too often. If your mail app checks for new messages more than once every 10
    minutes, the app’s access to your account could be blocked.

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆