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