Note - Outlook can be very finicky with Gmail settings and it is usually relating to the outgoing ports and the SSL and or TLS settings.
Without looking at this whole article here are your settings.
Port 993 / SSL
DO NOT CHECK THE - (SPA) REQUIRE LOGIN USING SECURE PASSWORD AUTHENTICATION
Port 587 SSL and most of the time Port 25 with TLS is what works
Key is to check the box My outgoing server (SMTP) requires authentication
and click the radio button - Use same settings as my incoming mail server (user name and password)
To setup your Gmail account to use IMAP, sign in to your Gmail account and go to Mail.
Click the Settings button in the upper, right corner of the window and select Settings from the drop-down menu.
On the Settings screen, click Forwarding and POP/IMAP.
Scroll down to the IMAP Access section and select Enable IMAP.
Click Save Changes at the bottom of the screen.
Close your browser and open Outlook. To begin adding your Gmail account, click the File tab.
On the Account Information screen, click Add Account.
On the Add Account dialog box, you can choose the E-mail Account option which automatically sets up your Gmail account in Outlook. To do this, enter your name, email address, and the password for your Gmail account twice. Click Next.
The progress of the setup displays. The automatic process may or may not work.
If the automatic process fails, select Manual setup or additional server types, instead of E-mail Account, and click Next.
On the Choose Service screen, select POP or IMAP and click Next.
On the POP and IMAP Account Settings enter the User, Server, and Logon Information. For the Server Information, select IMAP from the Account Type drop-down list and enter the following for the incoming and outgoing server information:
- Incoming mail server: imap.googlemail.com
- Outgoing mail server (SMTP): smtp.googlemail.com
Make sure you enter your full email address for the User Name and select Remember password if you want Outlook to automatically log you in when checking email. Click More Settings.
On the Internet E-mail Settings dialog box, click the Outgoing Server tab. Select the My outgoing server (SMTP) requires authentication and make sure the Use same settings as my incoming mail server option is selected.
While still in the Internet E-mail Settings dialog box, click the Advanced tab. Enter the following information:
- Incoming server: 993
- Incoming server encrypted connection: SSL
- Outgoing server encrypted connection TLS
- Outgoing server: 587
NOTE: You need to select the type of encrypted connection for the outgoing server before entering 587 for the Outgoing server (SMTP) port number. If you enter the port number first, the port number will revert back to port 25 when you change the type of encrypted connection.
Click OK to accept your changes and close the Internet E-mail Settings dialog box.
Outlook tests the accounts settings by logging into the incoming mail server and sending a test email message. When the test is finished, click Close.
You should see a screen saying “You’re all set!”. Click Finish.
Your Gmail address displays in the account list on the left with any other email addresses you have added to Outlook. Click the Inbox to see what’s in your Inbox in your Gmail account.
Because you’re using IMAP in your Gmail account and you used IMAP to add the account to Outlook, the messages and folders in Outlook reflect what’s in your Gmail account. Any changes you make to folders and any time you move email messages among folders in Outlook, the same changes are made in your Gmail account, as you will see when you log into your Gmail account in a browser. This works the other way as well. Any changes you make to the structure of your account (folders, etc.) in a browser will be reflected the next time you log into your Gmail account in Outlook.