richard
4 years ago
4873
37
Laravel

Sending an Email on Laravel 5

Posted 4 years ago by richard

I want to send an email on L5. I have edited .env file correctly:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=username@gmail.com
MAIL_PASSWORD=mypassword

I'm using my Gmail a/c.

The above configurations give me this error message: Swift_TransportException in AuthHandler.php line 181: Failed to authenticate on SMTP server with username "username@gmail.com" using 2 possible authenticators

How do I solve this?

Please sign in or create an account to participate in this conversation.