Laravel与Gmail发送电子邮件 - 在2022年6月的安全应用程序选项(不再支持)之后
几天前,Gmail Change是有关该选项的政策 “不太安全的应用程序&您的Google帐户” 此设置不再可用,
我的Laravel应用程序已停止发送电子邮件,
MAIL_MAILER=smtp
#MAIL_HOST=smtp.gmail.com
#MAIL_PORT=465
#[email protected]
#MAIL_PASSWORD= *********
#MAIL_ENCRYPTION= ssl
#[email protected]
#MAIL_FROM_NAME=""`
请帮助
Few days ago gmail change is policy regarding the option
"Less secure apps & your Google Account"
This setting is no longer available
My Laravel app is stopped sending email
MAIL_MAILER=smtp
#MAIL_HOST=smtp.gmail.com
#MAIL_PORT=465
#[email protected]
#MAIL_PASSWORD= *********
#MAIL_ENCRYPTION= ssl
#[email protected]
#MAIL_FROM_NAME=""`
Please help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(3)
是的,在删除Google选项后,它无法正常工作。但是没什么可担心的!发送电子邮件仍然非常简单。要再次发送电子邮件,您需要以Bellow的形式执行此操作:
现在,您可以仅使用电子邮件,然后生成的通过来发送电子邮件。
来自 https://stackoverflow.com/a/a/72626684/533426
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:
Now you can use just email and this generated pass to send email.
from https://stackoverflow.com/a/72626684/533426
不太安全的应用程序( https://myaccount.google.com/u/0/0/ )选项已被Google禁用。
我们需要使用以下链接使用AppPasswords功能。
https://myaccount.google.com/u/0/apppasswords
如下所示图像,使用Google提供的16位数字代码代替密码。
Less secure apps (https://myaccount.google.com/u/0/lesssecureapps) option has been disabled by google.
We need to use apppasswords feature using following link.
https://myaccount.google.com/u/0/apppasswords
As shown in following image, Use 16 digit code provided by google in place of password.
亲爱的adnan,首先,请更改
“”`
第二个请删除Bactick从Mail_from_name =
和
Hi dear adnan first of all please change the [email protected] to real Gmail account. And make your that email you are using not have setup 2 step authentication or any security.....
And the second please remove bactick from MAIL_FROM_NAME=""`
After all don't forget to clear cache
Run: php artisan optimize:clear