What Is an SMTP Server? SMTP Relay Explained for WordPress

Your SMTP plugin wants an "SMTP host" and you're not sure what that is. Here's what an SMTP server and an SMTP relay are, where to find yours, and the three ways a WordPress site can send.

An envelope with a check mark beside it

You installed an SMTP plugin to fix your WordPress email, and the first box it shows you says "SMTP host." Under it: port, encryption, username, password. You don't know what goes in any of them, and the plugin's help text keeps saying "your SMTP server" like you'd know which one you have. No worries. Most people who land here are in the same spot.

Here's the short version: an SMTP server is a mail server that takes an email and passes it along toward the person it's addressed to. When a WordPress plugin asks for "your SMTP server," it means the outgoing mail server of an email service you have an account with, like smtp.gmail.com for Gmail. That server takes your site's email and relays it on to Gmail, Outlook or wherever your reader's inbox lives.

What an SMTP server does

SMTP stands for Simple Mail Transfer Protocol. It's the set of rules mail servers use to hand email to each other. An SMTP server is any server that speaks it.

Think of it like the post office counter. You drop off a letter, the counter checks it has an address, and it goes into the system toward the right town. The counter doesn't deliver it to the front door. It hands it on.

That's what happens when your contact form sends a notification. WordPress hands the email to an SMTP server, that server hands it to the server that runs your reader's inbox, and that one puts it in their inbox (or their spam folder, which is a different story).

SMTP server vs SMTP relay

You'll see both terms, and they overlap. The standard that defines SMTP (RFC 5321) describes a "relay" as a server that "receives mail from an SMTP client and transmits it, without modification to the message data other than adding trace information, to another SMTP server for further relaying or for delivery."

In plain words: a relay is an SMTP server doing the middle job. It takes mail from you and passes it on. The last server in the chain, the one that holds your reader's mailbox, is the delivery end.

So when a sending service sells "SMTP relay," it's offering to be that middle server for you. Your site logs in to their server, and they pass your email on to the rest of the internet. For a WordPress site, "SMTP server" and "SMTP relay" usually mean the same thing: the outgoing server your plugin logs in to.

What WordPress uses when you haven't picked one

If you've never set up SMTP, your site still sends email. WordPress sends everything through one function, wp_mail(), and out of the box that function is set to use PHP's mail(). That hands the email to whatever mail setup your web host has on the server.

That's where things tend to go wrong. Many hosts block or throttle outbound port 25 and PHP mail. And since February 2024, Gmail and Yahoo require senders to authenticate their mail, so an email from a web server that can't prove it came from your domain is easy to block or send to spam. If you want the longer version of that comparison, we put it side by side in SendWP compared with WordPress's default mail.

That's why your plugin is asking for an SMTP server in the first place. It wants to send your email through a real mail service instead of your host.

How to find the SMTP server address for your plugin

Your SMTP server is whatever email service you're going to send through, and its address comes from that service's help pages. Search the service's name plus "SMTP settings." You'll get four things to copy:

  • SMTP host: the server's address. For Gmail, it's smtp.gmail.com.
  • Port: usually 587 or 465.
  • Encryption: TLS goes with 587, SSL goes with 465.
  • Username and password: the login that service gives you. For Gmail, that's an app password, not your normal one.

If you don't have an account with any email service yet, you don't have an SMTP server to put in. That's normal. Skip down to the section on your three options.

Before you save the plugin settings, run your details through our free SMTP test. It connects to the host on your port, starts encryption and logs in step by step, then tells you which step failed. It never sends an email, so it's safe to try as many times as you need.

Which port, in one line each

The full table is in our post on WordPress SMTP settings, but here's what each number is for:

  • 587 is the port set aside for submitting email from an app or site to your mail service (RFC 6409). Start here.
  • 465 does the same job, encrypted from the first byte (RFC 8314). Use it if 587 is blocked or your provider prefers it.
  • 25 is for mail servers relaying to each other. Leave it alone from WordPress: most web hosts block it.

Your three options for a WordPress site

Once you know what an SMTP server is, the question becomes whose server your site should use. There are three common setups, and each one suits a different site.

  1. Your own Gmail or Google Workspace account. Put smtp.gmail.com in your plugin, sign in with an app password, and you're sending. It's fine for a small site's notifications. The catch is the limits: about 500 emails a day on a free Gmail account and 2,000 a day on Google Workspace, and Gmail refuses the rest until the next day. Gmail sends as the account you signed in with, too, so your From address has to match it.

  2. An SMTP plugin plus a sending service. Free SMTP plugins give you a pipe and a log. If you already have a good sending provider, that's all you need, and we'd tell you so. If you don't, you're signing up for a provider, copying its SMTP details into the plugin, and setting up its DNS records yourself.

  3. A sending service with its own WordPress plugin. This one skips the SMTP box entirely. The plugin takes over the email WordPress already sends and passes it to the service, so there's no host, port or password to fill in.

Do you need to run your own SMTP server?

For a WordPress site, almost never. Running a mail server yourself means keeping its address off block lists, setting up SPF, DKIM and DMARC, handling bounces, and keeping it patched. That's a full job for someone who wants to be an email admin. Most site owners just want the receipt to reach the customer.

Whichever server you send through, the receiving end still checks that the email really came from your domain. That's the DNS side of things, and our guide to setting up DKIM and DMARC for WordPress email walks through it.

Where SendWP fits

SendWP is option three. You install the SendWP plugin and connect your site, and it routes the email WordPress already sends: form notifications, WooCommerce receipts, password resets. No SMTP settings, no code, nothing for your other plugins to change. Mail goes out from your own authenticated domain, we give you the DKIM and SPF records to add, and every email lands in a searchable log for 30 days so you can see what happened to it.

The SendWP screen under Tools in WordPress, saying the site is not connected yet, with the Connect to SendWP button circled.

If an SMTP host box is the last thing you want to deal with today, get started with SendWP for $1 your first month. The getting started guide shows each step, and setup takes as little as 15 seconds with three clicks.

Written by The SendWP Marketing Team, assisted by Friday.

Make your WordPress email arrive.

SendWP sends your site’s email from your own authenticated domain, tries again when a send doesn’t go through and keeps a log of every message. Plans start at $9 a month.

See plans and pricing