How to Find the SMTP Port Number in Outlook

To find the SMTP port in classic Outlook for Windows, select File > Account Settings > Server Settings, then select Outgoing mail. The outgoing (SMTP) server, port number, and encryption type are listed there. For an Outlook.com account, Microsoft lists smtp-mail.outlook.com, port 587, with STARTTLS.

These steps apply to POP and IMAP accounts and follow Microsoft’s POP, IMAP, and SMTP settings for Outlook.com. Microsoft 365, Exchange, Gmail, and other providers have their own sections below.

How to Find the SMTP Port Number in Outlook

Use these steps in classic Outlook for Windows.

  1. In Outlook, select File.
  2. If you have more than one account, choose the one you want from the drop-down at the top.
  3. Select Account Settings, then Server Settings.
  4. Select Outgoing mail. The SMTP server, port number and encryption method are shown.
  5. When you’re done looking, close the window. If you changed anything, select Next and then Done.
Steps to find the SMTP port number in Outlook
Illustration: how to find the SMTP port in Outlook.

Another Way: Find the SMTP Port Through Control Panel

Microsoft also lists a path through the Mail settings in Control Panel. It shows the same settings from outside the Outlook window.

  1. Open Control Panel and select Mail.
  2. Select Email Accounts, choose your account, and select Change.
  3. Select More Settings, then open the Advanced tab.
  4. Look under Server Port Numbers for Outgoing server (SMTP). The encryption type is shown next to it.
  5. Select Test Account Settings to check that the account works with these settings.

Outlook.com SMTP Settings

If you use an Outlook.com account in another email app, enter these settings from Microsoft’s Outlook.com settings page:

  • SMTP server: smtp-mail.outlook.com
  • SMTP port: 587
  • Encryption: STARTTLS
  • Sign-in: OAuth2 / Modern Auth, with your full email address as the user name

For incoming mail, IMAP uses outlook.office365.com, port 993, with SSL/TLS, and POP uses port 995.

POP and IMAP access are turned off by default on Outlook.com. To turn them on, go to Settings > Mail > Forwarding and IMAP in Outlook.com. Outlook.com requires OAuth2/Modern Auth. A correct server and port do not make an email app that lacks the required authentication compatible.

Outlook.com SMTP server, port, encryption, and sign-in settings
Illustration: Outlook.com email server settings.

Microsoft 365 and Exchange Accounts

Most email apps set up a Microsoft 365 or Exchange account automatically, so you usually don’t need to type an SMTP port at all. If you do need the settings, Microsoft’s server settings article gives a way to look them up for an Exchange account that isn’t on Microsoft 365:

  1. Sign in to your account in Outlook on the web.
  2. Go to Settings > Mail > POP and IMAP.
  3. Look at the settings listed for POP3, IMAP4 and SMTP. The SMTP server name and port are shown there.

Microsoft gives smtp.office365.com as an example of a Microsoft 365 SMTP server name. If you can’t find the page, or your account is managed by your work or school, ask your IT admin or email provider for the outgoing server, port and encryption method.

Gmail, Yahoo and Other Email Providers

Outlook doesn’t set the SMTP port for accounts from other providers. That provider decides it. Get these details from your email provider before you add the account:

  • The type of incoming server (POP or IMAP)
  • The incoming server name and port
  • The outgoing (SMTP) server name and port
  • The encryption method each server uses (SSL/TLS or STARTTLS)

For personal Gmail accounts, IMAP is always enabled; Google removed the Enable IMAP switch in January 2025. Use Sign in with Google when adding Gmail to Outlook. For more, read about Gmail IMAP settings and Google’s current email-client instructions.

How to Change the SMTP Port in Outlook

If your provider gives you a different port, you can change it in the same places you found it.

  1. Open File > Account Settings > Server Settings and select Outgoing mail. Or use Control Panel > Mail > Email Accounts > Change > More Settings > Advanced.
  2. Enter the new port number for the outgoing (SMTP) server.
  3. Pick the encryption type your provider gave you.
  4. Select Next, then Done. In the Control Panel method, use Test Account Settings to check the change before you close the window.

A successful account test shows the new settings work. The right port alone doesn’t guarantee delivery if sign-in or encryption is wrong.

If the test fails because you recently changed your email password, update the password saved in Outlook first.

To check whether your network lets you reach the outgoing server on that port at all, you can enable Telnet on Windows 11 and connect to the server name and port.

If more than one account is set up, you can show the From field in Outlook to choose which account sends each message.

Outlook SMTP Port Questions

What is the SMTP port for Outlook.com?

It’s port 587 with STARTTLS encryption, using the server smtp-mail.outlook.com.

Why don’t I see Server Settings for my account?

The Server Settings steps apply to POP and IMAP accounts. Microsoft 365 and Exchange accounts are usually set up automatically. Use the Outlook on the web steps above, or ask your admin.

Do I need the SMTP port to send email in Outlook?

Usually not. Most email apps configure the server settings for you. You need the port when you set up an account manually or when sending fails.

What if I use two-step verification?

Follow your provider’s sign-in instructions. Outlook.com requires OAuth2/Modern Auth; an app password is not a general workaround for missing OAuth support. For Gmail, Sign in with Google is the better choice, and app passwords are unnecessary in most cases.

For more help, browse the Outlook guides or learn how to create an Outlook email account.