简体   繁体   English

如何解决 Laravel SMTP 中 2 个可能的身份验证器错误

[英]How to resolve 2 possible authenticators error in Laravel SMTP

I am trying to send mail.我正在尝试发送邮件。 But I am receiving an error stating that:-但我收到一条错误消息,指出:-

Failed to authenticate on SMTP server with username \\"abcmail@gmail.com\\" using 2 possible authenticators无法使用 2 个可能的身份验证器使用用户名 \\"abcmail@gmail.com\\" 在 SMTP 服务器上进行身份验证

I have even turned on allow less secure app in my gmail account.我什至在我的 Gmail 帐户中打开了允许安全性较低的应用程序。

Also, here is the code in my .env file:-另外,这是我的.env文件中的代码:-

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=abcmail@gmail.com
MAIL_PASSWORD=12345
MAIL_ENCRYPTION=tls

What could be the possible reason?可能的原因是什么?

You need to add below settings in config/mail.php您需要在 config/mail.php 中添加以下设置

'stream' => [
    'ssl' => [
        'allow_self_signed' => true,
        'verify_peer' => false,
        'verify_peer_name' => false,
    ],
],

and In .eve add并在 .eve 添加

MAIL_ENCRYPTION=ssl

Use SSL for send mail threw SMTP使用 SSL 发送邮件抛出 SMTP

暂无
暂无

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

相关问题 Laravel,无法使用 3 个可能的身份验证器使用用户名“”在 SMTP 服务器上进行身份验证 - Laravel, Failed to authenticate on SMTP server with username "" using 3 possible authenticators Laravel:无法使用 2 个可能的身份验证器在 SMTP 服务器上使用用户名进行身份验证 - Laravel :Failed to authenticate on SMTP server with username using 2 possible authenticators 使用 2 个可能的身份验证器在用户名“***”的 SMTP 服务器上进行身份验证失败 - Failed to authenticate on SMTP server with username “***” using 2 possible authenticators 无法使用2个可能的身份验证器在SMTP服务器上使用用户名进行身份验证 - Failed to authenticate on SMTP server with username using 2 possible authenticators PHP Swift 邮件程序:无法使用 2 个可能的身份验证器在 SMTP 上进行身份验证 - PHP Swift mailer: Failed to authenticate on SMTP using 2 possible authenticators 如何解决“SMTP错误:无法连接到SMTP主机”。 在phpmailer中? - How to resolve 'SMTP Error: Could not connect to SMTP host.' in phpmailer? 如何解决SMTP无法连接错误? [发布STARTTLS问题] - How to resolve SMTP could not connect error? [post STARTTLS problem] Swift_TransportException无法使用共享主机上的2个可能的身份验证器使用用户名email@domain.com在SMTP服务器上进行身份验证 - Swift_TransportException Failed to authenticate on SMTP server with username email@domain.com using 2 possible authenticators on shared host 何解决SMTP连接失败错误 - Ho to resolve SMTP connect failed error 如何为用户设置多个身份验证器 - How to setup multiple authenticators for users
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM