Laravel 5 Swift_TransportException预期响应代码为250,但获得代码“530”,消息为“530 5.7.1需要身份验证”

Laravel 5 Swift_TransportException预期响应代码为250,但获得代码“530”,消息为“530 5.7.1需要身份验证”,laravel-5,Laravel 5,我是Laravel的新手,希望提高我使用Laravel framework 5.4的技能。但我不知道遇到此错误时该怎么办:1/1 Swift_TransportException预期响应代码250,但收到代码530,需要消息530 5.7.1身份验证。是否替换此项 make sure that you are using the mail credential in .env file. i think you try to send mail without using the mail cr

我是Laravel的新手,希望提高我使用Laravel framework 5.4的技能。但我不知道遇到此错误时该怎么办:1/1 Swift_TransportException预期响应代码250,但收到代码530,需要消息530 5.7.1身份验证。是否替换此项

make sure that you are using the mail credential in .env file. i think you try to send mail without using the mail credentials.so,
create credentials on sendgrid or any mail service for send mail and put these credentials in .env file.

MAIL_DRIVER=smtp
MAIL_HOST=smtp.sendgrid.net
MAIL_PORT=587
MAIL_USERNAME=your credentials username
MAIL_PASSWORD=your secret key
MAIL_ENCRYPTION=tls
'username'=>env'ivanedu947@gmail.com",

'password'=>env'password'

对此

'username'=>env'MAIL_username','miemail@gmail.com",

'password'=>env'MAIL_password','password'

和php行上的comand键

php artisan配置:缓存


它一定是作品

这能回答你的问题吗?欢迎来到SO。这里有许多重复的问题,请在打开新问题之前尝试搜索。如果副本与您的问题不匹配,请编辑它并解释它的不同之处,以便我们可以尝试提供帮助。