SMTP server settings for every major email provider
Every email provider needs four things to send by SMTP: the server, the port, a username and a password that works for SMTP. That password is often not your normal one. Here are the settings for the most common providers, with what to use for each.
SMTP settings table
| Provider | SMTP server | Port | Username | Password |
|---|---|---|---|---|
| Gmail / Google Workspace | smtp.gmail.com | 465 | Full address | App Password (2-Step Verification on) |
| Outlook / Microsoft 365 | smtp.office365.com | 587 | Full mailbox address | Mailbox password, with Authenticated SMTP turned on |
| Zoho Mail | smtp.zoho.com (.eu, .in, .com.au; smtppro.zoho.com for your own domain) | 465 | Full address | Application-specific password |
| Amazon SES | email-smtp.<region>.amazonaws.com | 587 | SES SMTP user name | SES SMTP password |
| Brevo | smtp-relay.brevo.com | 587 | SMTP login from Brevo's SMTP page | SMTP key |
| Mailgun | smtp.mailgun.org (smtp.eu.mailgun.org in the EU) | 587 | e.g. [email protected] | The domain's SMTP password |
| SendGrid | smtp.sendgrid.net | 587 | apikey | API key with Mail Send permission |
| Postmark | smtp.postmarkapp.com | 587 | Server API token | The same token |
| Resend | smtp.resend.com | 465 | resend | Resend API key |
| Yahoo Mail | smtp.mail.yahoo.com | 465 | Full address | App password |
Port 465 or 587: which SMTP port should I use?
Port 465 uses SSL/TLS from the first byte. Port 587 starts plain and upgrades with STARTTLS. Both are encrypted and both work with most providers. The common mistake is mixing them up: turn "SSL from the start" on for 465 and off for 587. Port 25 is usually blocked by home networks and cloud hosts, so avoid it.
Provider notes worth knowing
- Gmail: about 500 recipients a day on a personal account, about 2,000 on Google Workspace
- Outlook / Microsoft 365: an admin must allow Authenticated SMTP for the mailbox, and Microsoft is retiring password sign-in for SMTP
- Amazon SES: verify your From address or domain, and request production access, since new accounts start in a sandbox
- Brevo, Mailgun, SendGrid, Postmark and Resend: the password is an SMTP key or API token, never your account password
- Zoho: use the server for your account's region and an application-specific password when two-factor is on
Test your SMTP settings without sending an email
In Neuctra Mailer, pick your provider and the server and port fill in for you, with a short guide to the right password. Check these settings logs in without sending anything. If the provider refuses, you get a plain explanation and steps for that provider, such as "Gmail needs an App Password" or "SES: the sender address isn't verified". Once it works, your app sends through that account with one SDK call.
Frequently asked questions
- What is an SMTP server?
- It is the server that accepts outgoing email from an app or mail program and delivers it. Every email provider runs one, and you sign in to it with a username and password to send from your address.
- Why does my SMTP login fail with the right password?
- Many providers don't accept your normal password for SMTP. Gmail, Yahoo and Zoho need an app password, and Brevo, SendGrid and Postmark need an SMTP key or API token.
- Can I use more than one SMTP provider?
- Yes. In Neuctra Mailer's paid plans a service can have several SMTP accounts, route each kind of email to one of them, and fail over to the next when one is down or hits its limit.
Send your first email today
Create a service, add your SMTP login and send a test. It takes about two minutes.