If you have 2-step verification on your gmail, it will cause many troubles so I would advise using a service like Mailgun to relay your transactional emails. You can have the mail sent to your gmail. Otherwise, the only way you can do it consistently is to check the box in gmail settings to allow 3rd party apps or something like that. I forget the exact wording to allow it...but it is unreliable at best.
Nov 29, 2017
9
Level 20
Failed to authenticate on SMTP server with username "[email protected]" using 2 possible authenticators
Hey guys,
I have an application that sends out emails. Everything was working fine until I connected this email address to my Gmail account in order to have easier access to it and to be able to reply to users.
Now I'm getting an error on the site:
(1/1) Swift_TransportException
Failed to authenticate on SMTP server with username "[email protected]" using 2 possible authenticators.I have tried the following to fix this problem:
- I have checked all of the mail settings and they are all correct.
MAIL_DRIVER=smtp
MAIL_HOST=mydoma.in
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=mysupersecretpassword
MAIL_ENCRYPTION=ssl
- I have SSHed in and tried clearing the cache:
php artisan config:cache
php artisan config:clear
- I have gone to: https://myaccount.google.com/security#connectedapps and ensured that "Allow less secure apps: ON"
-
I have gone to: https://accounts.google.com/UnlockCaptcha, clicked continue, and unlocked my account for access through other media/sites
-
I have also tried to put the password in quotes. No dice.
Any idea what else it could be?
Thanks guys!
Level 53
1 like
Please or to participate in this conversation.