smtp - Sending email fails when two factor authentication is on for Gmail -


I am using my Gmail account and smtp.gmail.com from my web application Send and email to test inside. When two factor authentication is turned on for my Gmail account, it fails to send email, however, when I close two-factor authentication for my Gmail account, the web application successfully sends an email to appreciate any kind of advice < / P>

Create a custom app in Gmail security settings.

  1. Log in to Gmail with your account 2. Visit https://security.google.com/settings/security/apppasswords 3. Select 'Custom' in 'Select App', give it an arbitrary name and press Generate 4 . This will give you 16 characters token  

Use the token with your full Gmail account as a passover and two factor authentication will not be required.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -