Gmail IMAP Settings are:
Gmail IMAP Server:
imap.gmail.comGmail IMAP user: [email protected] (Your Gmail Address)Gmail IMAP password: Your Gmail password / App PasswordGmail IMAP port: 993TLS/SSL Required: yes
Enabling IMAP in Gmail:
To access Gmail messages though imap, you must need to enable it first in your Gmail account.
- Go to Settings.
- Click Forwarding and POP/IMAP.
- Select Enable IMAP
- Save Changes.
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.