简体   繁体   English

Gmail SMTP 服务器停止工作,因为它不再支持“不太安全的应用程序”

[英]Gmail SMTP server stopped working as it no longer support "Less Secure Apps"

I am working on Laravel project and suddenly emails stopped working.我正在从事 Laravel 项目,突然电子邮件停止工作。 After searching I figured out that Google as stopped support for Less Secure Apps and now I no longer see the option to enable or disable it in My Account.搜索后,我发现 Google 停止了对安全性较低的应用程序的支持,现在我不再在“我的帐户”中看到启用或禁用它的选项。

But now I'm not sure how to make it working again as all the results that I search on internet are related to the old method.但现在我不确定如何让它再次工作,因为我在互联网上搜索的所有结果都与旧方法有关。 I want to make it working on localhost.我想让它在本地主机上工作。

Here is more detailed link which I found - https://support.google.com/accounts/answer/6010255这是我找到的更详细的链接 - https://support.google.com/accounts/answer/6010255

Yes, It's not working after removing the option by google.是的,谷歌删除该选项后它不起作用。 But nothing to worry!但没什么好担心的! It's still very simple to send email.发送电子邮件仍然非常简单。 To send email again you need to do this as bellow:要再次发送电子邮件,您需要执行以下操作:

  1. Login to your gmail登录您的 gmail
  2. Go to Security setting and Enable 2 factor authentication转到安全设置并启用 2 因素身份验证
  3. After enabling this you can see app passwords option.启用此功能后,您可以看到应用密码选项。 Click here !点击这里
  4. And then, from Your app passwords tab select Other option and put your app name and click GENERATE button to get new app password.然后,从您的应用程序密码选项卡中选择其他选项并输入您的应用程序名称,然后单击生成按钮以获取新的应用程序密码。
  5. Finally copy the 16 digit of password and click done.最后复制16位密码,点击完成。 Now use this password instead of email password to send mail via your app.现在使用此密码而不是电子邮件密码通过您的应用发送邮件。

Now you can use just email and this generated pass to send email.现在您可以只使用电子邮件和这个生成的通行证来发送电子邮件。

您需要在您的设置中启用 2 因素身份验证(与您用来查看安全性较低的应用程序的位置相同),然后一旦启用,您将看到一个名为“应用程序密码”的新选项 - 然后您可以创建一个应用程序密码,用于SMTP 设置

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 到现在 Google 停止了不太安全的应用程序,如何使用 PHPMailer 从 GMail 帐户发送电子邮件? - As on now Less Secure Apps stopped by Google, how to use PHPMailer to send email from GMail account? SMTP 服务器的 cakephp 电子邮件错误不接受密码。 启用了不太安全的应用程序 - cakephp email error with SMTP server did not accept the password. Less secure apps is enabled SMTP Gmail服务器PHP邮件程序不起作用 - smtp gmail server php mailer not working Google SMTP停止工作 - Google SMTP Stopped Working phpMailer smtp停止工作 - phpMailer smtp stopped working PHPMailer Gmail 登录失败,尽管将端口设置为 465 调整“访问不太安全的应用程序”并使用“DisplayUnlockCaptcha” - PHPMailer Gmail Sign In Fails, despite setting Port to 465 tuning on "access to less secure apps" and using "DisplayUnlockCaptcha" 如何在不启用“允许不太安全的应用程序”的情况下接受 gmail 电子邮件。 PHPMailer - How to accept gmail emails without enabling “allow less secure apps”. PHPMailer PHPmailer无法在使用带有cookiePHP的gmail smtp的实时服务器上工作 - PHPmailer is not working on live server using gmail smtp with cakePHP 3 我怎样才能让 gmail smtp 服务器再次工作? - How can i get gmail smtp server working again? 启用安全性较低的应用程序后,为什么仍出现“电子邮件发送失败:SMTP connect()失败。” - why does “Email failed to send: SMTP connect() failed.” still appear after having enabled less secure apps
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM