GMail SMTP Settings are:
Gmail SMTP Server:
smtp.gmail.comGmail SMTP user: email@example.com (Your Gmail Address)Gmail SMTP password: Your Gmail password / App PasswordGmail SMTP port - For TLS: 587For SSL: 465TLS/SSL Required: yes
Generate App password (for 2-Step Verification Users)
If you have enabled 2-Step verification for your email account, you have to create an app password to use as Gmail SMTP password in above given settings. Go generate app password login to your Gmail account and follow below steps.
- Go to https://myaccount.google.com/
- Go to “App passwords”
- Click on Select App >> Other (Custom name)
- Enter App Name and Click GENERATE
It will generate a new app password and show on-screen. Copy this password and use it for Gmail SMTP settings in your application code or settings.