SMTP Settings for Every Email Provider

Server addresses, ports, encryption and authentication requirements for 22 email providers — each with setup steps and fixes for the errors that provider actually returns.

Test your SMTP settings

Every email client needs the same four pieces of information to send mail: the SMTP server hostname, the port, the encryption method, and a username and password. The table below gives all four for the most widely used providers, so you can copy them straight into your mail client, CMS or application.

Before you start: most major providers no longer accept your normal account password over SMTP. Gmail, Yahoo, iCloud, AOL and Outlook.com all require an app password, and SendGrid, Mailgun, Postmark and Amazon SES issue dedicated API credentials instead. Each provider page below explains exactly which to generate.

Quick reference table

Provider SMTP server Port Encryption Authentication
Gmail smtp.gmail.com 587, 465 STARTTLS App Password (2-Step Verification must be on) or OAuth 2.0
Outlook.com smtp-mail.outlook.com 587 STARTTLS App password or OAuth 2.0 — basic password auth is being retired
Microsoft 365 smtp.office365.com 587 STARTTLS SMTP AUTH must be enabled per-mailbox; OAuth 2.0 preferred
Yahoo Mail smtp.mail.yahoo.com 465, 587 SSL/TLS App password required
iCloud Mail smtp.mail.me.com 587 STARTTLS App-specific password (2FA required on the Apple ID)
AOL Mail smtp.aol.com 465, 587 SSL/TLS App password required
Zoho Mail smtp.zoho.com 465, 587 SSL/TLS Password or app-specific password
Proton Mail 127.0.0.1 (Proton Mail Bridge) 1025 STARTTLS Proton Mail Bridge (paid plans) or Proton Business SMTP submission tokens
Yandex Mail smtp.yandex.com 465, 587 SSL/TLS App password required
GMX Mail mail.gmx.com 587, 465 STARTTLS Password — POP3/IMAP access must be enabled first
Fastmail smtp.fastmail.com 465, 587 SSL/TLS App password required
SendGrid smtp.sendgrid.net 587, 465, 2525 STARTTLS API key as password
Mailgun smtp.mailgun.org 587, 465, 2525 STARTTLS Per-domain SMTP credentials
Amazon SES email-smtp.<region>.amazonaws.com 587, 465, 2587 STARTTLS Dedicated SMTP credentials generated in the SES console
Brevo smtp-relay.brevo.com 587, 465, 2525 STARTTLS SMTP key (not the account password)
Mailjet in-v3.mailjet.com 587, 465, 25 STARTTLS API key / secret key pair
Postmark smtp.postmarkapp.com 587, 2525, 25 STARTTLS Server API token used for both username and password
SMTP2GO mail.smtp2go.com 2525, 587, 465, 8025 STARTTLS Dedicated SMTP user
GoDaddy smtpout.secureserver.net 465, 587, 80 SSL/TLS Password
Hostinger smtp.hostinger.com 465, 587 SSL/TLS Password
Namecheap Private Email mail.privateemail.com 465, 587 SSL/TLS Password
Comcast Xfinity smtp.comcast.net 587 STARTTLS Password — third-party access must be enabled

Mailbox providers

Consumer and personal email accounts.

Business email platforms

Hosted email for organisations and custom domains.

Transactional email relays

Services built for application and bulk sending.

Web hosting email

Mailboxes bundled with hosting and domain plans.

Internet service providers

Mailboxes provided by your broadband company.

Frequently asked questions

SMTP settings are the four values a mail client needs to send email: the server hostname (such as smtp.gmail.com), the port (usually 587 or 465), the encryption method (STARTTLS or SSL/TLS), and the username and password used to authenticate. Get any one wrong and sending fails.

Your email provider publishes it. For the 22 providers listed on this page, the server, port and encryption are documented above. For a custom domain, check your hosting control panel — it is commonly smtp.yourdomain.com or mail.yourdomain.com.

SMTP sends credentials to the server on every connection, and a stolen account password grants full access to the mailbox. Providers now issue app passwords: single-purpose credentials you can revoke individually without changing your main password. Gmail, Yahoo, iCloud, AOL, Outlook.com, Fastmail and Yandex all require one.

Yes. The server, port and encryption are identical across desktop clients, phones and applications. Only the credentials may differ — some providers recommend generating a separate app password per device so you can revoke one without disrupting the others.

Not sure your settings are right?

Paste them into the free SMTP checker and get a definitive answer in under a minute.

Test SMTP Settings