How to Use SMTP to Send WordPress Emails

A computer screen displaying a wordpress interface on one side and an smtp server symbol on the other
A computer screen displaying a wordpress interface on one side and an smtp server symbol on the other

To send WordPress emails through an SMTP server, install a free SMTP plugin, enter the mail details from your email provider, and send a test email. By default, WordPress relies on your web server’s mail system, which many hosts do not set up well. An SMTP server is a dedicated mail service that sends your messages with proper sender checks, so they are more likely to arrive. This guide shows you how to set it up step by step and how to check that it works.

What SMTP Means and Why WordPress Needs It

SMTP stands for Simple Mail Transfer Protocol. It is the standard way email is passed from one mail server to another. When you send an email, your mail program hands it to an SMTP server, which then delivers it to the recipient’s mail server.

WordPress sends emails for many tasks. These include new user registrations, password reset links, order confirmations from a shop, and contact form messages. All of them go through a built-in function called wp_mail(). Without extra setup, that function uses your server’s mail system.

Server mail often fails quietly. Messages can land in spam folders or never arrive at all. Sending through an SMTP service that you have set up correctly gives you more control and makes it easier to see what went wrong.

What You Need Before You Start

  • Admin access to your WordPress dashboard.
  • An email account you want WordPress to send from, such as an address on your domain or a mailbox from your email provider.
  • The SMTP details for that account. Your email provider or host should supply them.

Ask your provider for these four items:

Setting What it is Example format
SMTP host The name of the outgoing mail server mail.example.com
Port The door number the connection uses 465 or 587
Encryption How the connection is protected SSL or TLS
Username and password The login for the mailbox your full email address and its password

Step 1: Choose an SMTP Plugin

WordPress does not offer SMTP settings in its dashboard by default. You need a plugin to add them. Plugins are add-ons that extend what WordPress can do.

Popular free options on the WordPress plugin directory include:

  • WP Mail SMTP by WPForms. This is the most widely used example. It is free, and it supports a generic option called Other SMTP for any mail service that offers SMTP.
  • FluentSMTP. Also free. It can import the settings you already have from WP Mail SMTP, so switching is simpler.
  • Post SMTP. Also free, with email logs and alerts. Some extra features are paid upgrades, so check the plugin page to see what is included.

This guide uses WP Mail SMTP. The steps are similar in other plugins. Check the plugin page on WordPress.org before you install, as plugin versions and features change.

Step 2: Install and Activate the Plugin

  1. In the left-hand menu, select Plugins, then Add New.
  2. Search for WP Mail SMTP.
  3. Select Install Now, then Activate.

Before installing, make sure your WordPress version is up to date. Plugin listings sometimes state minimum WordPress versions. Keep your site backed up before you make changes.

Step 3: Run the Setup Wizard or Open the Settings

After activation, a setup wizard may open. If it does not, go to WP Mail SMTP → Settings and select Launch Setup Wizard. You can also fill in the Mail section of the settings page directly.

Step 4: Choose Your Mailer

The mailer is the service that will send your emails. If your email provider has its own option in the list, choose it. For any other provider, choose Other SMTP.

Step 5: Enter Your SMTP Details

Type in the details from your provider. A typical set of values looks like this. Replace them with the values your provider gives you:

  • Encryption: SSL or TLS, as your provider specifies.
  • SMTP Host: the mail server name, for example mail.example.com.
  • Port: for example 465 with SSL, or 587 with TLS.
  • Authentication: set to enabled.
  • SMTP Username: your full email address.
  • SMTP Password: the password for that mailbox.

Do not guess the port or encryption type. A mismatch is one of the most common reasons for failure.

Step 6: Set the From Name and From Email

The From Name is the name readers see, such as your business name. The From Email is the address the message appears to come from.

Make the From Email match the SMTP username. Many providers reject or flag messages where these two do not match. Use an address on your own domain where you can.

Step 7: Save and Send a Test Email

Select Save Settings. Then open the plugin’s test email tab, enter an address you can check, and send a test message.

If the test arrives, check the spam folder too. A message in spam means the set-up works, but the mail may still need sender checks such as SPF and DKIM. These are DNS records that tell receiving servers the message is allowed to come from your domain. Your email provider or host can tell you which records to add.

Step 8: Check Email Logs

Logs show each email WordPress tried to send, and whether it succeeded or failed. WP Mail SMTP includes an email log feature. Check it after you test, and again after you run a real action, such as a password reset request on a test account.

Also test the emails that matter most to you:

  1. Submit your contact form and confirm the message arrives.
  2. Use the lost password link on a test user account.
  3. If you run a shop, place a test order and check the confirmation email.

Common Problems and What to Check

Problem What to check
Authentication failed Username is the full email address, and the password is correct.
Connection timed out Host name and port match your provider’s details.
SSL or TLS errors Encryption type matches the port your provider lists.
Emails go to spam From Email matches the SMTP username, and SPF and DKIM records are in place.
No emails at all The plugin is active, and the test email tab shows an error message you can look up.

If the problem continues, read the error text in the email log. Then contact your email provider or host with the exact message. Do not share your password with anyone.

Tips for Reliable WordPress Email

  • Use a dedicated sending address, such as a no-reply address on your domain.
  • Keep the plugin and WordPress updated.
  • Check the email log once a month, or after you change your site.
  • Store your SMTP password in a password manager, not in a document.
  • Limit the number of emails sent by plugins, such as newsletters, so you stay within your provider’s sending limits.

If emails bounce back to you, read the causes and fixes for bounced emails guide.

FAQ

Do I need to pay for an SMTP plugin?

No. WP Mail SMTP, FluentSMTP and Post SMTP all have free versions on the WordPress plugin directory. Check each plugin page to see which features need an upgrade.

Which port should I use?

Use the port your email provider gives you. Common choices are 465 with SSL and 587 with TLS. Using the wrong pairing is a frequent cause of errors.

Why do my WordPress emails go to spam?

Common reasons include a From Email that does not match the sending account, missing SPF or DKIM records, or content that looks like spam. Check your settings, then ask your provider about DNS records.

Can I use my Gmail account with WordPress?

You can, but it takes more setup. Gmail needs extra authentication steps, and a dedicated Gmail plugin may be required. If you are not comfortable with that, ask your provider which option fits your account.

Next Steps

  1. Get your SMTP host, port, encryption type and login details from your email provider.
  2. Install WP Mail SMTP, or another plugin you have chosen, and enter the details.
  3. Send a test email and check your spam folder.
  4. Test your contact form and any shop emails.
  5. Read about POP3 and IMAP if you want to understand how your mailbox itself works.