Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 30100

Laravel Gmail: Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8

$
0
0

Hey guys I am using laravel and trying to send mail from contact page.It is working fine on local server, but when I am trying to test it on server it is giving me error with user credentials error.

Here is my .env file:

MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=app@gmail.com MAIL_PASSWORD=AppPassword MAIL_ENCRYPTION=tls

Viewing all articles
Browse latest Browse all 30100

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>