Last active
June 8, 2023 09:40
-
-
Save kashiftufail/37219f4d22c4bfa489ed93571a290fe5 to your computer and use it in GitHub Desktop.
Google Error - 535-5.7.8 Username and Password not accepted.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Do simple these steps | |
1. After sign in your google account click on below your photo icon | |
"Manage your Google Account" | |
2. then click on "security" tab. | |
3. Find "How you sign in to Google" | |
4. Then google need to on "2-Step Verification" | |
5. After do it by giving your account password. Go to bottom of page and find | |
"App passwords" | |
6. Click on "select app" in my case i select other and giving name "website". | |
7. The password will be generated, this will be your password for | |
configuration of smtp rather than your actual account password. | |
config.action_mailer.smtp_settings = { | |
:address => "smtp.gmail.com", | |
:port => 587, | |
:user_name => '[email protected]', | |
:password => 'google generated password', | |
:authentication => "plain", | |
:enable_starttls_auto => true | |
} | |
This will sure work! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment