Step 1:- Enable Imap from settings
First of all, you need to enable the IMAP in Gmail. To do this follow the instructions mentioned below.
Open your Gmail account.
Then, click on the gear icon at the top right corner of the screen.
After that, click on the “See all settings” button.
Here, you’ll see different settings and options. You need to go to the “Forwarding and POP/IMAP” tab.
At last, in the IMAP Access section select the “Enable IMAP” option.
Finally, click on the save changes button at the bottom. After doing this the status will get changed to “IMAP is enabled”.
When the IMAP is enabled you can read your incoming and outgoing email from other clients apart from Gmail. In addition to this, you will be able to read Gmail messages from other devices and sync your email in real-time as well.
Step 2:- Allow access to Less Secure Apps
After enabling the email, the next thing you need to do is to allow less secure apps to access your Google Accounts. Less Secure Apps (LSAs) are those applications that access the account via username & password instead of OAuth.
Even though OAuth is the most secure way to access your Google account, not every application allows you to do the same. Therefore, you need to enable access to less secure apps. Follow the instructions mentioned below meticulously to allow access to LSAs.
Make sure that you are signed in with your Google account in the browser.
Click on the account icon at the top right corner of the screen.
Then, select the Manage your Google Account option.
From the left-side navigation panel, click on the Security option.
Here, scroll down a bit and you’ll see the less secure app access section.
At last, click on the “Turn ON” option. You may be required to enter the password again.
Step 3:- DisplayUnlockCaptcha
Unlock Captcha is an added security feature by Google. This commonly happens when multiple users access Google account emails from other email clients or applications using IMAP or POP.
Due to unsuccessful attempts to log in, Google suggests unlocking the captcha. For this, you need to follow these steps.
Make a URL like this
Then go to Gmail and find your user number then insert it in place of “user_number”. In this example, the number is 1.
Your Display unlock URL will be
SMTP and other settings for third-party applications
If you want to integrate Gmail with applications like SugarCRM then these are some port, server, etc settings that you need to make sure are correct.