AI Summary
Do you want to configure your WordPress SMTP settings so your site’s emails actually arrive? SMTP is a quick fix for lost contact form and order emails.
By default, WordPress has no SMTP settings screen at all. It hands every email to your server’s PHP mail function. Those messages often fail or land in spam.
In this guide, I’ll show you each SMTP setting and what to enter.
Where Is the SMTP Setting in WordPress?
WordPress doesn’t have built-in SMTP settings. To add them, install WP Mail SMTP and go to WP Mail SMTP » Settings.
There, you pick a Mailer. With Other SMTP, you enter your provider’s SMTP Host, Encryption, SMTP Port, and login. For most providers, that’s port 587 with TLS.
WP Mail SMTP replaces PHP mail with an authenticated email provider. Receiving servers can verify who sent each message, so more emails reach the inbox.


WordPress SMTP Settings Explained
Every setting below lives on the General tab under WP Mail SMTP » Settings. Here’s what each one does and what to enter.


Sender Settings
These settings control who your emails come from. They apply to every mailer.
- From Email: The address your emails come from. Use one on your own domain, like
[email protected]. - Force From Email: Stops other plugins from changing your From Email. It’s on by default, and I’d leave it on.
- From Name: The sender name people see, like your business name.
- Force From Name: Makes every email use your From Name. This one is off by default.
- Return Path: Sends bounce messages to your From Email. It’s on by default and shows for some mailers, like Other SMTP.
Mailer
The Mailer setting picks how WP Mail SMTP sends your email. Most mailers connect with an API key, so there are no server details to type.
Choose Other SMTP when your provider only gives SMTP details, like your host’s email.


SMTP Connection Settings
When you select Other SMTP, these fields appear:
- SMTP Host: Your provider’s outgoing mail server, like
smtp.gmail.com. - Encryption: Choose None, SSL, or TLS. The plugin recommends TLS for most servers.
- SMTP Port: The port your provider uses. Picking an encryption fills it in: 587 for TLS, 465 for SSL, 25 for None.
- Auto TLS: Upgrades the connection to TLS when the server supports it. It’s on by default and hidden when you pick TLS.
- Authentication: Logs in to the mail server. It’s on by default, and almost every provider needs it.
- SMTP Username: Usually your full email address.
- SMTP Password: Your email password or, for Gmail and Yahoo, an app password.
WP Mail SMTP encrypts the password in your database. For extra security, you can set it in wp-config.php with the WPMS_ON and WPMS_SMTP_PASS constants.
Which SMTP Port and Encryption to Use
Your port and encryption must match, or the connection fails. Here are the standard pairs.
Port 587 + TLS → the usual choice (STARTTLS)
Port 465 + SSL → encrypted from the first byte (implicit TLS)
Port 25 + None → server-to-server relay, often blocked by hosts
Both 587 and 465 are secure. I’d start with port 587 and TLS, since WP Mail SMTP recommends it. If your host blocks 587, try 465 with SSL.
Avoid port 25. Many hosts block it to stop spam. Some providers list port 2525 in their docs as a backup when 587 is blocked.


SMTP Settings for Popular Email Providers
Here are the values for a few common providers. Always double-check your provider’s own help page.
| Provider | SMTP Host | Port + Encryption | Password |
|---|---|---|---|
| Gmail / Google Workspace | smtp.gmail.com | 587 + TLS, or 465 + SSL | 16-character app password (needs 2-Step Verification) |
| Yahoo Mail | smtp.mail.yahoo.com | 465 + SSL, or 587 + TLS | App password |
| Zoho Mail (free or personal) | smtp.zoho.com | 465 + SSL, or 587 + TLS | Account password, or an app-specific password with 2FA |
| Zoho Mail (paid, own domain) | smtppro.zoho.com | 465 + SSL, or 587 + TLS | Same as above |
| SendLayer | smtp.sendlayer.net | 587 + TLS | SMTP password from Settings » SMTP Credentials |
For your web host’s email, check your hosting control panel or ask your host.
How to Configure Your WordPress SMTP Settings for Emails
There are 2 ways to set up your WordPress email settings with WP Mail SMTP. I’ll start with the simpler one.
- Method 1: Get Full White Glove Setup for WordPress SMTP
- Method 2: Add WordPress SMTP and Email Settings Yourself
- Step 1: Install the WP Mail SMTP Plugin
- Step 2: Connect to a Mailer Service
- Step 3: Enable Email Logging and Email Alerts
- Step 4: Enable Additional Email Log Settings
- Step 5: Set Up Additional Connections
- Step 6: Set Up a Backup Connection
- Step 7: Configuring Smart Routing
- Step 8: Resend Failed Emails
- Step 9: Configure Email Rate Limiting
- Troubleshooting WordPress SMTP Settings
Method 1: Get Full White Glove Setup for WordPress SMTP
Rather not do it yourself? Our team can, with White Glove Setup. It’s included with Elite, or you can add it to any license.


We’ll set up and test everything for you:
- Install and configure WP Mail SMTP with your From Email and From Name
- Add the DNS records your mailer needs
- Send a test email to confirm everything works
It works with SendLayer, SMTP.com, and Brevo, all with a strong record for email deliverability.
To get started, see how to request White Glove Setup.
If you’d prefer to configure WordPress SMTP settings yourself, let’s walk through the process next.
Method 2: Add WordPress SMTP and Email Settings Yourself
After you install WP Mail SMTP, pick a mailer and finish the setup. On Default (none), your emails still go through PHP mail.
This works in every version, including the free one. I’ll use Pro here to show the extras.
Step 1: Install the WP Mail SMTP Plugin
First, install WP Mail SMTP if you haven’t already.
Upgrading from Lite? Paste your license key on the plugin settings page, and it upgrades automatically.


New to WP Mail SMTP? Log in to your WP Mail SMTP account and open the Downloads tab. Then click the orange button to download the plugin.


Now, log in to your WordPress dashboard and upload the plugin. If you need help, see this guide on how to install a WordPress plugin.


Once it’s installed, click Activate. On a new install, WordPress opens the Setup Wizard for you.
Step 2: Connect to a Mailer Service
Now, let’s connect a mailer. On the welcome screen, click Let’s Get Started.
On a live site, the wizard may move you to the WP Mail SMTP website. That’s expected.


Next, you’ll see the Choose Your SMTP Mailer screen. If you aren’t sure which provider to pick, here are some tips:
- For most sites, I recommend SendLayer, SMTP.com, or Brevo. The wizard marks all 3 as Recommended. They’re transactional email providers with a free trial or a free plan.
- SendLayer’s Quick Connect links your account in a few clicks, with your first 200 emails free.
- Other SMTP works with any SMTP server, using the settings above. Some hosts, like GoDaddy and A2 Hosting, may block outside SMTP connections.
- The Google / Gmail mailer suits Gmail and Google Workspace accounts. Setup takes longer, but you can send email from any Gmail alias in WordPress.
Once you’ve chosen a mailer, select it in the wizard.


The wizard then shows your mailer’s settings. It checks them with your provider before saving, so typos get caught early.
Each mailer also has a setup doc. Click yours below and follow the steps.
Once your mailer is connected, come back here for the rest of the wizard.
Step 3: Enable Email Logging and Email Alerts
After you add your mailer settings, WP Mail SMTP asks which extra features you’d like. 2 are turned on by default:
- Improved Email Deliverability
- Email Error Tracking
Pro also adds Detailed Email Logs and Instant Email Alerts.


- Detailed Email Logs track each email’s headers, subject line, and status. Turning this on also turns on Complete Email Reports. You can add the Weekly Email Summary to get a recap each week.
- Instant Email Alerts tell you when your site fails to send an email. That way, you can fix it before users miss anything.
Step 4: Enable Additional Email Log Settings
If you turned on email logs, the next screen has a few more log settings.


These options include:
- Store the content for all sent emails: Saves each email’s content in your database. You need this to resend emails.
- Save file attachments sent from WordPress: Saves attachments in your site’s Uploads folder.
- Track when an email is opened: Lets you see when recipients open emails.
- Track when a link in an email is clicked: Shows when recipients click links.
See how to log WordPress emails for more on logs.
Next, copy your license key from your WP Mail SMTP account. Paste it into the box to turn on Pro features and updates.


Finally, the wizard sends a test email to check your mailer. If it fails, it shows the exact error and how to fix it.
You can send another test any time. Go to WP Mail SMTP » Tools » Email Test.
Enter your address and click Send Email. If the email arrives, your WordPress SMTP settings are working.
That’s the required setup done. The next steps are optional Pro features.
Step 5: Set Up Additional Connections
WP Mail SMTP Pro lets you connect more than one mailer. Extra mailers unlock 2 features:
- Backup Connection: If an email fails on your Primary Connection, the backup retries it.
- Smart Routing: Sends different emails through different mailers based on rules. For example, order emails can use a transactional mailer while others use another provider.
To add one, open WP Mail SMTP » Settings » Additional Connections.


Set up your 2nd connection the same way you did the 1st one.


Step 6: Set Up a Backup Connection
Go to the General tab and scroll down to Backup Connection. Pick the connection you want to use, then click Save Settings.


Step 7: Configuring Smart Routing
Open the Smart Routing tab. Use the dropdowns to build your rules, then click Save Settings.
Any email that doesn’t match a rule goes through your Primary Connection.


Step 8: Resend Failed Emails
With Pro, you can resend any logged email. First, open WP Mail SMTP » Settings » Email Log.




Make sure Enable Log, Log Email Content, and Save Attachments are all turned on.


Send a test from your site, like a contact form entry. Then go to WP Mail SMTP » Email Log.


Click View Log on the email you want to resend.


Next, click Resend under Actions in the right sidebar.


Confirm the recipient in the popup, or add more addresses separated by commas. Then click YES.


To resend in bulk, select emails on the main log screen and use the dropdown.


Step 9: Configure Email Rate Limiting
Rate limiting keeps busy sites under their provider’s sending caps, so they don’t get throttled.
First, open WP Mail SMTP » Settings » Misc and turn on Optimize Email Sending. This sends emails in the background, so your pages stay fast.


Then turn on Email Rate Limiting. Set caps per minute, hour, day, week, or month to match your provider’s limits.
For example, if your provider allows 10,000 emails a day, try a cap of 9,500.


Emails over your limit wait in a queue and send when your limits allow.
Troubleshooting WordPress SMTP Settings
When a test email fails, the error usually points to one setting. Here are the common ones.
SMTP Error: Could Not Connect to SMTP Host
WordPress can’t reach the mail server. Check your SMTP Host spelling and match your port to your encryption.
If both look right, your host may block SMTP ports. Ask them to open 587, or use an API mailer like SendLayer.
SMTP Error: Could Not Authenticate
The server rejected your login. Check your SMTP Username and SMTP Password, and make sure Authentication is on.
Gmail and Yahoo won’t accept your normal password here. Create an app password in your account’s security settings and use that instead.
TLS or Certificate Errors
Some servers have broken TLS setups. If you chose SSL or None, turn off Auto TLS and test again.
Still failing? Ask your host about their mail server’s certificate.
Emails Send but Land in Spam
Your SMTP connection works, but receiving servers don’t trust the message. Use a From Email on your own domain, and turn on Force From Email.
Then add SPF, DKIM, and DMARC records for your domain.
Another Plugin Changes the Sender
Some form and store plugins set their own From address. Turn on Force From Email and Force From Name to override them.
FAQs on WordPress SMTP Settings
Want to know more about using SMTP to deliver emails in WordPress? I’ve got you covered.
Why am I not receiving emails from my WordPress site?
Usually, a spam filter catches your messages between your web host and your inbox. It can start suddenly. Your server’s IP may be on a blocklist, or there may be errors with SMTP hosts.
For the fix, see our guide on how to stop WordPress emails going to spam.
How do I set up SMTP in WordPress?
Install an SMTP plugin, choose a mailer, and enter your provider’s details. We recommend WP Mail SMTP, which adds email logs, failure alerts, and backup connections. See our list of the best SMTP plugins for WordPress to compare options.
Which port should I use for SMTP, 587 or 465?
Use port 587 with TLS first. It’s what WP Mail SMTP recommends and what most providers list.
Port 465 with SSL is just as secure. Use it if your host blocks 587.
What is WP Mail SMTP?
WP Mail SMTP is a WordPress plugin that fixes email delivery. It sends your site’s emails through an email provider instead of your web server.
That’s much more reliable. You can read more in this WP Mail SMTP review.
Is WP Mail SMTP necessary?
Not every site needs it, but most do. Without an SMTP plugin, WordPress relies on PHP mail, which often lands in spam or fails silently. If your site sends form, order, or password reset emails, it’s worth it.
How do I set up WP Mail SMTP with Gmail?
Follow the steps in our Gmail setup doc.
You can also use WP Mail SMTP to send emails from a Gmail alias. That lets you use several sender addresses in WordPress.
How do I fix email not sending in WordPress?
This usually happens when your web host blocks or mishandles PHP mail. Install WP Mail SMTP and connect it to a provider like SendLayer or Gmail.
What are the SMTP settings for WP Mail SMTP?
They depend on your provider. For example, Gmail uses smtp.gmail.com on port 587 with TLS. Most WP Mail SMTP mailers use an API key instead, so there’s no host or port to enter.
Do I need a paid SMTP service?
Not always. Brevo has a free plan, and SendLayer’s Quick Connect includes your first 200 emails free. For high volumes, like WooCommerce orders, a paid plan gives you higher limits.
How do I test SMTP in WordPress?
Go to WP Mail SMTP » Tools » Email Test. Enter your email address and click Send Email. If you get the message, your SMTP setup is working.
How do I find my SMTP server settings in WordPress?
WordPress doesn’t have built-in SMTP settings. Install WP Mail SMTP, then go to WP Mail SMTP » Settings.
Your SMTP host, port, and encryption come from your email provider. SendLayer, for example, lists them under Settings » SMTP Credentials in its dashboard.
Next, Check Your DNS Settings
Your DNS settings are usually managed by your web host or domain registrar. 3 DNS records help stop emails going to spam: DMARC, DKIM, and SPF.
- You can start by creating a DMARC record for your domain. This stops others from using your domain to send phishing emails.
- We’ve also got a guide that explains how to combine more than one SPF record.
- And you can split your DKIM record if it’s too long.
Ready to fix your emails? Get started today with the best WordPress SMTP plugin. If you don’t have the time to fix your emails, you can get full White Glove Setup assistance as an extra purchase, and there’s a 14-day money-back guarantee for all paid plans.
If this article helped you out, please follow us on Facebook and Twitter for more WordPress tips and tutorials.
