How to set up Microsoft 365 email in Gmail (Webmail)

This tutorial describes how to add Microsoft 365 email to Gmail (webmail). 

Visit and log in to your existing Gmail account.

NOTE: For this tutorial, we will use as our test email account. You will need to change some of the settings to match your setup.

Once logged in to Gmail, at the top right area of the screen, click on the gear icon to open your Gmail Quick Settings menu, then click See all settings.


From the menu at the top of the page, choose the Accounts tab.


Next, locate the Check mail from other accounts option and click on Add a mail account.


A new window will pop up (hint: if you don’t see it, check your pop up blocker settings).

In the pop up window, enter your email address, then click Next.


On the next screen, set up your account as shown, using the settings that match your account.

NOTE: Gmail only allows for POP type connections here, and the username is always the full email address.

Once all the settings are filled in, as shown below, click the Add Account button.


You will now see a notification that your account has been added successfully, with additional options:


If you do not need to send email from the account you just added, simply choose the No option, then Next, to complete the setup. Skip to the next step.

If you would like to set up options for sending email from Gmail, choose Yes, then click Next.

You will then set up your sending mail options. The name and email address will be pre-populated from your previous settings.


The Treat as an alias checkbox is important, depending how you want to use this email account.

When you reply to emails from this mailbox, you can choose to reply as if you are sending email from your Gmail account (Default), or you can reply showing the alias email address you just set up ( in this example).

If you want to reply using a specific address, you will see that option. Clicking the link will open another pop up box, where you can enter the email address from which you would like to reply. Then click the Next Step button to continue.


Your options will now show the SMTP settings you need to complete in order to send email from this email account, via Gmail.

Some fields are filled in automatically, based on your incoming settings; however, you will need to fix the Username and Port numbers. 

For the username, always use the full email address, and the port number is 465 for SSL SMTP connections.


Once ready, click the Add Account button to proceed.

Google will test the connection, then the last step is to confirm the email address you have added by going to that inbox and finding the confirmation code from Google.


Enter this code, then click Verify to complete the setup.

You can now use your Office 365 email address from directly within an existing Gmail account. When you Compose a new email you will see the option to choose which email address you are sending from.

Default Email Account Settings (Office 365 Email)

Secure SSL/TLS Settings (Recommended)

Username: Use the full email you are setting up.
Password: Use the email account’s password.
Incoming Server:

  • IMAP Port: 993
  • POP3 Port: 995
Outgoing Server:

  • SMTP Port: 587
IMAP, POP3, and SMTP require authentication.

If you need help with your HostPapa account, please open a support ticket from your dashboard.

Related Articles

This post is also available in: FrançaisEspañol
Get online with our affordable web hosting

Get online with our affordable web hosting

Learn more now
HostPapa Mustache