4
当我尝试发送密码重置电子邮件,我得到以下错误:密码重置邮件获得530 5.7.1需要验证
Swift_TransportException in AbstractSmtpTransport.php line 383:
Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required"
我不知道什么是错在这里。我看了Stack Overflow和Laracasts,发现了类似的问题。我试过两个不同的电子邮件地址和服务器。但是我得到了同样的错误。
这是我的.ENV文件:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=[password]
MAIL_ENCRYPTION=tls
这里是我的mail.php文件:
'driver' => env('MAIL_DRIVER'),
'host' => env('MAIL_HOST'),
'port' => env('MAIL_PORT'),
'from' => [
'address' => '[email protected]',
'name' => 'XX',
],
'encryption' => env('MAIL_ENCRYPTION'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'sendmail' => '/usr/sbin/sendmail -bs',
任何想法我有错吗?
看起来像http://stackoverflow.com/questions/17227532/gmail-530-5-5-1-authentication-required-learn-more-at – ceejayoz
你检查你的信用在bootstrap/cache/config.php ? – Adrianopolis
我的bootstrap/cache文件夹中没有config.php。 – jerauf