Outlook error 0x800CCC0E "Cannot connect to the server": how to fix it
Error 0x800CCC0E means classic Outlook could not connect to your mail server. If it affects a Gmail or Yahoo account in classic Outlook for Microsoft 365, removing Outlook's saved sign-in entries from Windows Credential Manager and signing in again is Microsoft's first workaround. Otherwise check the account settings and your security software.
On this page
What it means
0x800CCC0E is a general "Outlook can't reach the mail server" code. Outlook words it as Cannot connect to the server, usually inside a Send/Receive error. Microsoft's archived support blog lists it among the codes shown when Outlook cannot establish a connection with the e-mail server.
In 2026 the code also became common for one specific reason. Gmail and Yahoo accounts in classic Outlook for Microsoft 365 stopped syncing on 26 February 2026, or after a password change, and Outlook did not ask for a new sign-in. Microsoft's known-issue page says a service change on 20 March 2026 fixed this. Some accounts may still hold bad saved credentials, which the steps below clear. Microsoft documents this Gmail/Yahoo problem and its workarounds only for classic Outlook for Microsoft 365. It does not name Outlook 2016, 2019 or 2021, so I can't confirm those versions are affected.
Work through the fixes in order. The first ones are quick and change nothing important. The registry step is last on purpose.
Symptoms and causes
You are likely dealing with this problem if:
- Send/Receive shows
Task '... - Sending and Receiving' reported error (0x800CCC0E): Cannot connect to the server. - Gmail or Yahoo variants:
Task 'Synchronizing subscribed folders for [account]' reported error (0x800CCC0E)orCheck for new mail reported error (0x800CCC0E), and Outlook does not prompt you to sign in. - Sending fails with 0x800CCC0F or 0x80070057.
- Adding a Gmail account fails with "We couldn't log on to the incoming (POP/IMAP) server".
The usual causes, most common first:
- Stale Gmail or Yahoo sign-in data
- Saved OAuth credentials for the IMAP account are out of date or invalid, for example after a password change. This is Microsoft's documented 2026 problem for classic Outlook for Microsoft 365.
- Gmail access box left unticked
- During the browser sign-in the box "Read, compose, send, and permanently delete all your email from Gmail" (under Microsoft apps & services) was not ticked. Microsoft lists this as fixed from Current Channel version 2412 (Build 18324.20168).
- Wrong account settings
- Incorrect server names, ports or encryption, or SMTP authentication switched off. Older hosting guides name this as the most common generic cause.
- No connection, or a blocked mail port
- Your internet is down, or your network, ISP or a firewall blocks the mail ports.
- Mail server problem
- On a self-hosted server the SMTP service may be stopped or misconfigured.
How to fix it
Work through these in order. They start with the quickest, safest checks and move to deeper repairs; stop as soon as the problem is gone.
1.Check the connection and test webmail
If the mail server itself is down or you are offline, nothing inside Outlook will help.
- Open a website in your browser to confirm you are online.
- Sign in to your mail in a browser (Gmail, Yahoo, Outlook.com or your provider's webmail). If webmail also fails, the problem is the account or the provider, not Outlook.
- If webmail works and only Outlook fails, continue with the next fixes.
2.Update Outlook
Microsoft's Gmail fixes are in Current Channel version 2412 (Build 18324.20168) and later.
- In Outlook choose File > Office Account > Update Options > Update Now.
- Let the update finish, restart Outlook and try Send/Receive again.
3.Retry the Gmail sign-in and tick the access box
If the Gmail consent box was missed during sign-in, Outlook cannot read the mailbox. This applies to builds that already include Microsoft's fix.
- In the error window click Retry and repeat the browser sign-in.
- When Google asks for permissions, make sure the box "Read, compose, send, and permanently delete all your email from Gmail" (Microsoft apps & services) is ticked before you continue.
4.Remove the saved OAuth credentials (Gmail and Yahoo)
This is Microsoft's first listed workaround for 0x800CCC0E on Gmail and Yahoo in classic Outlook for Microsoft 365. Outlook asks you to sign in again and creates fresh entries.
Before you start: If you have several Gmail or Yahoo accounts in Outlook, remove only the entries that belong to the account that does not sync. Deleting all of them makes every Gmail or Yahoo account ask for a sign-in again.
- Close Outlook completely.
- Open Credential Manager from the Start menu and select Windows Credentials. Expand Generic Credentials.
- Find the entries that start with
MicrosoftOffice16_Data:OAUTH2and containtp_google_imap_Oauth2(Gmail) ortp_yahoo_imap_Oauth2(Yahoo). There are typically 2 or 4 per account. Leave other entries alone. - If you have more than one Gmail or Yahoo account, work out which entries belong to the non-syncing account by matching the number at the start of its subkey under
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity\Identities(see the registry fix below for how to open it, but do not delete anything there yet). Remove only the matching credentials. If you have just one such account, remove its entries. - Start Outlook and sign in to the account when prompted. If syncing does not start, restart Outlook once more.
5.Remove Outlook's access in your Google Account, then sign in again
Microsoft's manual workaround for Gmail when the saved credentials alone do not clear it.
- Close Outlook.
- In your Google Account go to Security, open the third-party connections section, choose Microsoft apps & services, then See Details > Remove all access > Confirm.
- Delete the Windows credentials for that account as described in the previous fix.
- Reopen Outlook, click Sign in via browser, and tick the Microsoft apps & services access box. If you had removed the account, add it again with File > Add account.
6.Check the account settings
Wrong server details or missing SMTP authentication produce this same error on any provider.
- Choose File > Account Settings > Account Settings, select the account, click Change, then More Settings.
- On the Outgoing Server tab tick My outgoing server (SMTP) requires authentication and use the same settings as the incoming server.
- Compare the server names, ports and encryption type with your provider's own help page and correct anything that differs.
7.Delete the account's Identity registry key
This is Microsoft's second workaround for Gmail and Yahoo accounts in classic Outlook for Microsoft 365, for when removing the credentials did not work.
Before you start: Close Outlook first. In Registry Editor, right-click the key and choose Export to save a backup, and consider creating a restore point. Delete only the subkey for the account that does not sync. A wrong deletion can force you to sign in to other Office accounts again.
- Close Outlook. Press WinR, type
regeditand press Enter. - Go to the key below. Export it with File > Export as a backup.
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity\Identities - Find the subkey that matches the email address that is not syncing and delete it. Key names begin with a number that matches the credential.
- Start Outlook and sign in again.
Check that it worked
- Click Send/Receive All Folders and confirm no 0x800CCC0E message appears.
- Send a test message to yourself and check that it arrives in the Inbox.
- Open the account's folders and confirm new mail is coming in.
If it still fails
- Use webmail or the new Outlook for Windows while you troubleshoot. The new Outlook is not reported as affected by the 2026 Gmail and Yahoo problem.
- If you run your own mail server, test port 25 with telnet. No response means the SMTP service is not running. A response means the client settings are wrong (MailEnable documentation).
- Contact your email provider's support, or Microsoft Support for Microsoft 365, and tell them the exact error text and your Outlook version and build (File > Office Account).
Sources
- Users get errors 0x800CCC0E & 0x800CCC0F synchronizing Gmail and Yahoo accounts in classic OutlookOfficial · Microsoft Support
- Unable to add a Gmail account to classic OutlookOfficial · Microsoft Support
- Outlook Errors: Send and receive e-mail errors, Part 1 (archived blog, 2008)Official · Microsoft Learn
- Error 0x800CCC0E in Outlook · Kualo
- Diagnosing Outlook/Outlook Express error codes · MailEnable