Support the ongoing development of Laravel.io →
Installation Configuration Mail

Hi there,

I have a laravel 5.2 application. I have configured gmail smtp server in my application and it works fine in my local machine. After I deployed the application to the cloud instance it gives

"Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted"

These are configuration details in my .env file.

MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=465 MAIL_USERNAME=mailID MAIL_PASSWORD="mailPassword" MAIL_ENCRYPTION=ssl

Please give me a help to avoid this issue.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Shashika shashika Joined 15 Feb 2017

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.