Limited-time offer The first 2,000 users get 10,000 emails/month free for a year 1,995 of 2,000 spots left Claim yours

Reference

SMTP server settings for every provider

Host, port, username and password for the email providers people actually use, and what trips each one up.

Last updated October 26, 2026

The SMTP host, port and login for every major email provider, checked October 2026. Pick your provider for the details and the common mistakes, or test your settings in FormSMTP and send email from any website with them.

Quick reference

ProviderSMTP hostPortUsername
Gmailsmtp.gmail.com465 (SSL) or 587 (STARTTLS)Your Gmail address
Google Workspacesmtp.gmail.com465 (SSL) or 587 (STARTTLS)Your full Workspace address
Outlook.com / Hotmailsmtp-mail.outlook.com587 (STARTTLS)Your Outlook.com address
Microsoft 365smtp.office365.com587 (STARTTLS)Your full mailbox address
Zoho Mailsmtp.zoho.com465 (SSL) or 587 (STARTTLS)Your full Zoho address
iCloud Mailsmtp.mail.me.com587 (STARTTLS)Your full iCloud address
Yahoo Mailsmtp.mail.yahoo.com465 (SSL) or 587 (STARTTLS)Your full Yahoo address
Amazon SESemail-smtp.<region>.amazonaws.com587 or 2587 (STARTTLS), 465 or 2465 (SSL)SES SMTP username
Brevosmtp-relay.brevo.com587 (STARTTLS), 465 (SSL) or 2525SMTP login shown in Brevo
SendGridsmtp.sendgrid.net587 (STARTTLS), 465 (SSL) or 2525apikey
Resendsmtp.resend.com465 or 2465 (SSL), 587 or 2587 (STARTTLS)resend
Mailgunsmtp.mailgun.org587 (STARTTLS), 465 (SSL) or 2525Domain SMTP login, e.g. postmaster@mg.yourdomain.com
Hostinger Emailsmtp.hostinger.com465 (SSL) or 587 (STARTTLS)Your full email address
Spacemailmail.spacemail.com465 (SSL)Your full email address

Gmail SMTP settings

Hostsmtp.gmail.com
Port465 (SSL) or 587 (STARTTLS)
UsernameYour Gmail address
PasswordApp Password (needs 2-Step Verification)

About 500 recipients a day.

Step-by-step: use Gmail SMTP for a website contact form

Google Workspace SMTP settings

Hostsmtp.gmail.com
Port465 (SSL) or 587 (STARTTLS)
UsernameYour full Workspace address
PasswordApp Password (needs 2-Step Verification)

About 2,000 recipients a day. Admins can disable App Passwords.

Step-by-step: use Google Workspace SMTP for a website contact form

Outlook.com / Hotmail SMTP settings

Hostsmtp-mail.outlook.com
Port587 (STARTTLS)
UsernameYour Outlook.com address
PasswordOAuth only

Password sign-in was removed on September 16, 2024, so password-based tools (including FormSMTP) can’t use it.

Step-by-step: use Outlook.com / Hotmail SMTP for a website contact form

Microsoft 365 SMTP settings

Hostsmtp.office365.com
Port587 (STARTTLS)
UsernameYour full mailbox address
PasswordMailbox password

Needs Authenticated SMTP enabled. Password SMTP AUTH is off by default from end of December 2026.

Step-by-step: use Microsoft 365 SMTP for a website contact form

Zoho Mail SMTP settings

Hostsmtp.zoho.com
Port465 (SSL) or 587 (STARTTLS)
UsernameYour full Zoho address
PasswordPassword, or app-specific password with 2FA

Use your region’s host: smtp.zoho.eu, smtp.zoho.in, smtp.zoho.com.au… Organization accounts may use smtppro.zoho.*.

Step-by-step: use Zoho Mail SMTP for a website contact form

iCloud Mail SMTP settings

Hostsmtp.mail.me.com
Port587 (STARTTLS)
UsernameYour full iCloud address
PasswordApp-specific password

Generate the password at account.apple.com.

Yahoo Mail SMTP settings

Hostsmtp.mail.yahoo.com
Port465 (SSL) or 587 (STARTTLS)
UsernameYour full Yahoo address
PasswordApp password

Generate it in Yahoo Account Security.

Amazon SES SMTP settings

Hostemail-smtp.<region>.amazonaws.com
Port587 or 2587 (STARTTLS), 465 or 2465 (SSL)
UsernameSES SMTP username
PasswordSES SMTP password

SMTP credentials are not AWS access keys. New accounts start in the sandbox.

Step-by-step: use Amazon SES SMTP for a website contact form

Brevo SMTP settings

Hostsmtp-relay.brevo.com
Port587 (STARTTLS), 465 (SSL) or 2525
UsernameSMTP login shown in Brevo
PasswordSMTP key (not an API key)

The login may be your account email or an @smtp-brevo.com address.

Step-by-step: use Brevo SMTP for a website contact form

SendGrid SMTP settings

Hostsmtp.sendgrid.net
Port587 (STARTTLS), 465 (SSL) or 2525
Usernameapikey
PasswordAPI key with Mail Send permission

The username is the literal word apikey.

Step-by-step: use SendGrid SMTP for a website contact form

Resend SMTP settings

Hostsmtp.resend.com
Port465 or 2465 (SSL), 587 or 2587 (STARTTLS)
Usernameresend
PasswordResend API key

Requires a verified domain.

Step-by-step: use Resend SMTP for a website contact form

Mailgun SMTP settings

Hostsmtp.mailgun.org
Port587 (STARTTLS), 465 (SSL) or 2525
UsernameDomain SMTP login, e.g. postmaster@mg.yourdomain.com
PasswordPassword set for that login

EU-region domains use smtp.eu.mailgun.org.

Step-by-step: use Mailgun SMTP for a website contact form

Hostinger Email SMTP settings

Hostsmtp.hostinger.com
Port465 (SSL) or 587 (STARTTLS)
UsernameYour full email address
PasswordMailbox password

Titan Email mailboxes use Titan’s own host.

Step-by-step: use Hostinger Email SMTP for a website contact form

Spacemail SMTP settings

Hostmail.spacemail.com
Port465 (SSL)
UsernameYour full email address
PasswordMailbox password

Spaceship’s email hosting.

SMTP ports: 465 vs 587 vs 25 vs 2525

PortEncryptionUse it for
465Implicit TLS (“SSL”) from the first byteSending from apps and websites. In FormSMTP, turn SSL on.
587STARTTLS: starts plain, then upgradesSending from apps and websites. In FormSMTP, leave SSL off; the connection still upgrades to TLS.
2525STARTTLS, unofficialA fallback some sending services offer when 587 is blocked.
25Optional STARTTLSServer-to-server relay. Often blocked by hosts and ISPs; avoid it for submission.

FAQ

Should I use port 465 or 587?

Both are encrypted. Port 465 starts TLS immediately (often labelled SSL); port 587 connects in plain text and upgrades with STARTTLS. Use whichever your provider lists first. If one is blocked by your network or host, try the other.

Why is my normal password rejected?

Many providers no longer accept your account password for SMTP. Gmail, iCloud and Yahoo need an app password, Zoho needs one when two-factor sign-in is on, and sending services like SendGrid, Brevo and Resend use an SMTP key or API key instead. Personal Outlook.com accounts no longer allow password sign-in for SMTP at all.

What is port 25 for?

Port 25 is for server-to-server mail transfer. Many hosting and cloud providers block it outbound, so websites and apps should submit mail on 465 or 587.

How do I test SMTP settings without writing code?

Create a free FormSMTP project, pick your provider so the host and port fill in, enter your login and click Test connection. It shows the exact error from your provider if something is wrong.

Get a Founding Pass

10,000 emails a month, free for your first year. Pass No. 0006 is next: 1,995 of 2,000 left, no card.