gpt4 book ai didi

php - 使用 Gsuite 邮件时电子邮件在 laravel 上不起作用

转载 作者:行者123 更新时间:2023-12-05 07:21:04 25 4
gpt4 key购买 nike

我最近将我的域配置为 Gsuite 电子邮件。我将它用于我的 laravel 应用程序。使用 Gsuite 电子邮件时会出现以下错误,但它与其他 gmail 帐户和其他电子邮件服务器一起工作正常。请帮我找到这个问题。

预期响应代码 250 但得到代码“535”,消息“535-5.7.8 用户名和密码未被接受。在 535 5.7.8 https://support.google.com/mail/?p=BadCredentials v4sm27577447pgf.20 - gsmtp 了解更多”

我的邮箱配置

return array(
'driver' => 'smtp',
'host' => 'smtp.gmail.com',
'port' => 587,
'from' => array('address' => '{{Mydomain email}}', 'name' => '{{myname}}'),
'encryption' => 'tls',
'username' => '{{mydomain email}}',
'password' => '{{app password}}',
'sendmail' => '/usr/sbin/sendmail -bs',
'pretend' => false,
);

最佳答案

我也遇到了这个问题我使用了以下凭据

'driver' => 'sendmail',
'host' => 'mail.gmail.com',

成功了

关于php - 使用 Gsuite 邮件时电子邮件在 laravel 上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57119531/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com