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

发布于 2025-02-06 18:38:36 字数 365 浏览 1 评论 0原文

我正在从事Laravel项目,突然电子邮件停止工作。搜索后,我发现Google停止了对不太安全的应用程序的支持,现在我不再看到在我的帐户中启用或禁用它的选项。

但是现在我不确定如何使其再次工作,因为我在Internet上搜索的所有结果都与旧方法有关。我想让它在Localhost上工作。

这是我发现的更详细的链接-e https://support.google.com/acccounts/accounts/answer/ 6010255

I am working on Laravel project and suddenly emails stopped working. 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.

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

黒涩兲箜 2025-02-13 18:38:36

是的,在删除Google选项后,它无法正常工作。但是没什么可担心的!发送电子邮件仍然非常简单。要再次发送电子邮件,您需要作为Bellow进行此操作:

  1. 登录Gmail
  2. ,转到安全设置,并
  3. 在启用此功能后启用2个因子身份验证,您可以看到应用程序密码选项。单击在这里
  4. 然后,从您的应用程序密码选项卡中选择其他选项,然后放置您的应用程序名称,然后单击“生成”按钮以获取新的应用程序密码。
  5. 最后,复制密码的16位数字,然后单击完成。现在,使用此密码而不是电子邮件密码通过您的应用发送邮件。

现在,您可以仅使用电子邮件,然后生成的通过来发送电子邮件。

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
  2. Go to Security setting and Enable 2 factor authentication
  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. 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.

少女的英雄梦 2025-02-13 18:38:36

您需要在设置中启用2个因子身份验证(与查看不太安全的应用程序相同的位置),然后一旦您可以看到一个称为应用程序密码的新选项 - 然后您可以创建一个应用程序密码SMTP设置

You need to enable 2 factor authentication in your settings (same place you used to see the less secure apps) then once you enable that you will see a new option called App Passwords - you can then create a app password that you would use for the SMTP settings

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文