In case when your Outlook client is not connecting to Gmail and your credentials are not accepted, you may want to fix that. In this article, we will show you how you can do that. The problem is that Outlook keeps asking you to provide Server, User Name and Password and there is no matter how many times you click on Ok, it keeps popping up.
After some time it gives you an error. This issue occurs when basic authentication has not been enabled for a Gmail account. So we need to get rid of this situation. So let’s configure Outlook and see how to resolve the error (you can also take a look at our guide on how to setup Gmail in Outlook 2016).
How to Solve Outlook Not Connecting to Gmail Issue?
So, the first thing we need to do is to enable POP/IMAP protocol to access Gmail.
Enable POP/IMAP in Gmail
Log into your Gmail account and click on small gear in the right top of the window and select Settings. After that, go to the Forwarding and POP/IMAP tab. Here you can see that Status: POP is disabled and Status: IMAP is disabled. You can choose either one of them, but we are going to enable IMAP protocol. Once it is done, click on Save Changes.
The reason behind selecting IMAP is that IMAP is a special protocol of communication between the e-mail client and the mail server. It means that if you open your mail on a web browser and perform some actions on Outlook, then you can see the changes turn to Outlook instantly and appear on the webmail. This is not a case with POP.
Connecting Gmail to Outlook
Now go to the Start menu and open your Outlook. Click on FILE and then click on Add Account.
From here select Manual setup or additional server types and click on Next.
In the following window select POP or IMAP and go ahead.
Now type in your name (this name will be displayed in the emails you send) and email address. As the account type select IMAP and as incoming mail server type in imap.gmail.com. The outgoing mail server (SMTP) is going to be smtp.gmail.com. Also, you should fill the Logon information form and then click on More Settings.
The option Require logon using Secure Password Authentication (SPA) should not be checked, because this is a proprietary Microsoft protocol based on NTLM authentication, which is not supported by Gmail.
Go to Outgoing Server and tick on “My outgoing server (SMTP) requires authentication”.
Now, go to Advanced tab and change some mail server settings. Select SSL to encrypt your connection for the Incoming server (IMAP) by selecting from the drop-down list. The port number for IMAP should be 993. For the outgoing SMTP server select TLS as an encryption protocol and change the port number from 25 to 587. Click on Ok and go ahead.
Now you can see, that there is the same form we have earlier. We still cannot connect to Gmail, but the error is not the same.
So, as explained in the beginning, this issue occurs due to the fact that you have not enabled the basic authentication for your Gmail account. The fact is that since July 15, 2014, Google has strengthened the protection of accounts by blocking applications that use simple validation for access the Gmail mailbox (such as Outlook). Currently, Outlook does not support OAuth and 2-Step Verification, so the only way to allow a connection for Gmail via Outlook is to use the App-Specific Password. You can enable this feature only on Google Account webpage.
Let’s see how to enable this feature from your Gmail account.
- Login to your Gmail account with your browser;
- Click on your account picture in the right upper and press My Account;
- In the Sign-in and Security section press on link Apps with account access;
- Scroll down a little bit and you will see the option Allow less secure apps. You need to enable this option;
- Enable 2-Step Verification (you must confirm your phone number using SMS or phone call);
- Next press on the App passwords. Here you need to generate a new password for your Gmail connection from Outlook;
- From Select app drop-down list select Mail and Windows computer as a device type;
- Press the Generate button. Google generates a new app password for you;
- You must use this password (without the spaces) instead of your password from the Goggle account when you connect to the Gmail in Outlook.
Once it is done, go to Outlook and just try to connect again with a newly created password.
If you have set up everything properly, both test tasks for verifying the connection to Gmail will succeed. As you can see, the process is completed successfully and you will see that there is no Outlook not connecting to Gmail problem.
Check Gmail TCP Ports Connectivity
If the test connecting Outlook to Gmail has failed, you need to check if your computer or Internet service provider is not blocking the network ports for accessing the Gmail mailbox. On Windows 10, you can perform port check using the Test-NetConnection PowerShell cmdlet. You need to check the availability of Gmail servers over the following protocols: IMAP over SSL (993) and SMTP over TLS (587). Start the elevated PowerShell CLI and run the comands:
Test-NetConnection imap.gmail.com -port 993 Test-NetConnection smtp.gmail.com -port 587
If the command returns, TcpTestSucceeded = False, then access to your Gmail email account is blocked by a firewall. Check the settings of your Windows Firewall or third-party firewalls installed on your computer (many modern antiviruses have built-in network filtering functionality). Allow the outlook.exe process to send outgoing traffic over the TCP ports 993 and 587. If TCP ports are not blocked on your computer, contact the technical support service of your Internet service provider. Perhaps access to Gmail is blocked on some ISP network equipment.
Another Option to Restore Outlook Access to Gmail
In this section, we have compiled various tricks that sometimes helped to our readers restore access from Outlook to their Gmail account:
- Uncheck the option “Enable connected experience” in the Outlook 365 settings (Outlook > File > Office Account > Account Privacy > Manage Settings) and restart Outlook;
- Try to change the IMAP server in the Account Setting from the imap.gmail.com to imap.googlemail.com and the Outgoing server from smtp.gmail.com to smtp.googlemail.com;
- Disable the simplified account creation in Outlook 2016, Outlook 2019 and Outlook for Office 365 by creating a new DWORD (32-bit) paremeter named DisableOffice365SimplifiedAccountCreation in the registry key HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Office\16.0\Outlook\setup. Set the value of DisableOffice365SimplifiedAccountCreation to 1. You can use the following command: REG ADD HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Setup /v DisableOffice365SimplifiedAccountCreation /t REG_DWORD /d 1 /f
- Disable all Outlook add-ins (Click File > Options > Add–ins);
- Create a new Outlook configuration (go to the Control Panel > Mail > Show Profiles > Add and recreate you Gmail connection).
That’s all, your Outlook account for Gmail has been configured now and issue when Outlook not connecting to Gmail is solved. It will download all your emails and synchronize all the information.