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

Laravel 6 send mail

$
0
0

I have an issue with authentication while sending mail with Laravel smtp driver.

.env file:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=account@gmail.com
MAIL_FROM_ADDRESS=account@gmail.com
MAIL_PASSWORD=app_password
MAIL_ENCRYPTION=tls

It gives the following error:

"530-5.7.0 Authentication Required. "

  • 2-Factor auth is enabled and app password is used;

  • Also tried with SSL on 465, same error;

  • Config is flushed every time .env is changed;

  • Everything in config/mail corresponds to .env;

SO all typical solutions are not working. What else may cause this problem?

I have also tried using smtp.vivaldi.net with vivaldi account, it authenticates, but gives an error:

"no valid recipients"

while recipient email is surely valid, which is also strange for me.


Viewing all articles
Browse latest Browse all 29903

Trending Articles



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