how to configure your wordpress smtp settings

How to Configure Your WordPress SMTP Settings to Send Email

Do you want to configure your WordPress SMTP settings for outgoing emails, but you’re not sure where to start?

It’s definitely worth setting up an email provider to add authentication and stop your WordPress emails from going to the spam folder.

In this guide, we’ll show you how to set up WordPress SMTP by yourself. If you’re not confident in doing that, we’ll also explain how to get our team to handle WordPress email settings for you!

Fix Your WordPress Emails Now

Where Is the SMTP Setting in WordPress?

By default, WordPress doesn’t have native SMTP settings. In order to configure SMTP on your WordPress for emails, you’ll want to install the WP Mail SMTP plugin.

WP Mail SMTP takes over the default method of sending email in WordPress which uses the unreliable PHP mail system.

In effect, WP Mail SMTP reconfigures your site’s mail function so that it uses SMTP rather than PHP mail.

This is much more reliable because SMTP includes the necessary authentication details to your messages to ensure successful email delivery.

When you install WP Mail SMTP, it’s important to complete our Setup Wizard. If you don’t, WP Mail SMTP won’t have any effect.

We’ll show you exactly how to complete the Setup Wizard below, in the section called Method 2.

How to Configure Your WordPress SMTP Settings for Emails

Let’s take a look at 2 ways to set up your WordPress email settings using WP Mail SMTP. We’ll start with the easiest option!

Method 1: Get Full White Glove Setup for WordPress SMTP

Setting up WordPress SMTP can be pretty overwhelming if you’re a beginner. If you’re not confident setting up email in WordPress, you can just leave the task to experts.

That’s why WP Mail SMTP provides a full White Glove Setup service. It makes the WordPress mail server setup effortless.

Note: Our White Glove Setup service is only available to WP Mail SMTP Elite users. 

white glove service

Our White Glove Setup service includes complete configuration and testing for your new email provider using your verified email account.

That means we’ll:

  • Add your preferred From Name and From Address
  • Set up all of the required DNS records with your hosting providers
  • Test mailer so you know your WordPress emails are delivering properly.

If you want to use WP Mail SMTP without the hassle and have your email delivery issues fixed once and for all, this is likely the best option for you.

To get setup assistance, see how to request White Glove Setup.

How to Get White Glove Setup for WordPress SMTP

If you want to go ahead with White Glove Setup, you’ll want to purchase the WP Mail SMTP Elite license.

You can purchase a new license now, or upgrade your Pro license in your WP Mail SMTP account.

Click on Elite upgrade button

Next, you’ll want to choose your mailer.

Our White Glove Setup service is available with SendLayer, SMTP.com, or Sendinblue. All 3 of these email providers have a proven track record of excellent email deliverability.

All set? Start the White Glove Setup process right now in your WP Mail SMTP account. Head to the Downloads tab, then click Apply for White Glove Setup to let us know you’re ready to begin.

Apply for white glove set up

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

The second option is to configure WordPress SMTP settings yourself. This is slightly time-consuming for beginners, but we’ve already created custom setup docs for every email provider to help you with the setup process.

This method works with any version of WP Mail SMTP.

Install the WP Mail SMTP Plugin

First, install WP Mail SMTP if you haven’t done that already.

If you’re upgrading from Lite to Pro, you can paste your license key into the field on the plugin settings page to automatically upgrade.

Upgrade WP Mail SMTP Lite to Pro

If you’re new to WP Mail SMTP, log in to your WP Mail SMTP account and switch to the Downloads tab.

You can download the latest version of the plugin file by clicking the orange button.

Download the WP Mail SMTP plugin

Now, log in to the WordPress dashboard and upload the plugin to install it. If you need help with this, check out this guide on how to install a WordPress plugin.

Install WP Mail SMTP

Once the plugin is installed, be sure to Activate it. This will launch the Setup Wizard in your browser.

Connect to a Mailer Service

In this step, we’ll connect your website to a mailer service of your choice.

Click the Let’s Get Started button to begin the Setup Wizard.

click the Let's Get Started button

Now it’s time to start the WordPress mail server setup process.

If you aren’t sure which email provider to use, we have some tips that might help:

  • For general usage, we recommend SendLayer, SMTP.com, or Sendinblue. These are professional transactional email providers with either a free trial or a completely free plan.
  • Other SMTP is a good option if you want basic email sending through an external SMTP server. It also provides strong encryption with TLS and SSL standards. But keep in mind that some hosts, including GoDaddy and A2 Hosting, may block external SMTP connections.
  • Our Gmail mailer is perfect if you have a Gmail or Google Workspace account. Setting up this mailer takes a little longer than some of the other options, but it allows you to send email from any Gmail alias in WordPress.

Once you have chosen a mailer, go ahead and select it in the wizard.

Choosing a mailer in the WP Mail SMTP setup wizard

Now it’s time to create your account with your preferred mailer and connect it with your WordPress site. We’ve created detailed documentation for each email provider to make this really easy.

Click on your provider in the table below to open the documentation page in a new tab and follow the steps to configure WordPress email settings.

Mailers available in all versions Mailers in WP Mail SMTP Pro
SendLayer Amazon SES
SMTP.com Microsoft 365 / Outlook.com
Sendinblue Zoho Mail
Google Workspace / Gmail
Mailgun
Postmark
SendGrid
SparkPost
Other SMTP

You’ll find complete instructions in the docs above, such as which SMTP port to use (if you choose Other SMTP), connect your email service with WP Mail SMTP using an API key, and how to configure WordPress SMTP settings overall.

When you’ve set everything up and verified that everything is working OK with your test email address, switch back to this guide to follow the remaining steps in the wizard.

3. Enable Email Logging and Email Alerts

After you’ve successfully added your WordPress email settings, WP Mail SMTP will ask you which additional features you’d like to enable.

There are 2 features enabled by default:

  • Improved Email Deliverability
  • Email Error Tracking

If you have the Pro version, you’ll also be able to turn on the Detailed Email Logs and Instant Email Alerts.

Enabling email logs and email alerts in the WP Mail SMTP Setup Wizard

Detailed Email Logs will track the headers, subject line, and other information about the email. When this feature is enabled, it will automatically turn on Complete Email Reports as well. You’ll have the option to enable the Weekly Email Summary feature if you want to receive a summary of your logs each week.

Instant Email Alerts send you an email whenever your site fails to send an email. This lets you fix the problem quickly so your users don’t miss any important information.

Enable Additional Email Log Settings

If you enable email logs, the next step in the Setup Wizard will let you enable some additional settings related to this feature.

Configuring email log settings in the WP Mail SMTP Setup Wizard

These options include:

  • Store the content for all sent emails. This will store all the content of the emails sent from your WordPress site in its database. You must enable this option if you want to resend emails.
  • Save file attachments sent from WordPress. This will save attachments from your WordPress emails in your site’s Uploads folder.
  • Track when an email is opened. Enabling this option will let you see when recipients open emails from your site.
  • Track when a link in an email is clicked. See when recipients have clicked links in your WordPress emails.

These email logging features are really useful for a variety of scenarios. For instance, if you’re running an online store with WooCommerce, you can audit order emails easily with the complete email logs at your disposal.

Check out how to log WordPress emails to see how it works.

For the final step of the Setup Wizard, copy the license key from the WP Mail SMTP account and paste it into the box to enable Pro features and future updates.

Enter WP Mail SMTP license key

That’s it! You’ve done everything to configure SMTP settings on your WordPress website for outgoing emails.

Finally, we’ll show you some of our most useful Pro features: how to set up additional connections and how to resend emails from WordPress. If any of your WordPress email notifications fail, these features can help make sure they’re still delivered.

However, the steps below are optional and not necessary to configure WordPress email.

4. Set Up Additional Connections in WP Mail SMTP

WP Mail SMTP lets you connect your site to multiple mailers in the Additional Connections settings. This enables you to use 2 Pro features:

  • Backup Connection: If an email fails to send using your Primary Connection (the mailer you set up in the earlier steps of this tutorial), then WP Mail SMTP will automatically try to send it again using your Backup Connection.
  • Smart Routing: Set up conditional logic to route your emails through different mailers based on custom rules. This is useful if you’re sending different types of emails and want to use the best mailer for each one. For example, you can use a transactional mailer for your eCommerce order notifications and a different mailer for your newsletter and marketing emails.

To set up additional connections, go to WP Mail SMTP » Settings in your WordPress admin area and click Additional Connections.

Opening the Additional Connections settings in WP Mail SMTP

Here you can set up your 2nd connection the same way you did the 1st one:

Additional Connections settings in WP Mail SMTP

After you’ve filled in all the settings for your additional connection, you can setup a Backup Connection and / or Smart Routing.

Setting a Backup Connection

To set up a Backup Connection, go to the General settings page and scroll down to the Backup Connection section. Then select the mailer you want to use as your Backup Connection.

Choosing a Backup Connection for WP Mail SMTP

Click Save Settings when you’re done.

Configuring Smart Routing

To set up Smart Routing, go to the Smart Routing settings page. Here you can set up your conditions for sending emails using an additional connection.

Configuring Smart Routing settings in WP Mail SMTP

Use the dropdowns to create your Smart Routing rule(s). Any emails that do not meet the conditions you set up here will be sent using your Primary Connection.

Click Save Settings when you’re done.

5. Resend Emails Using WP Mail SMTP

If a WordPress email fails, or you want to forward it, WP Mail SMTP makes it easy to resend any email with just a few clicks.

This feature is available in the Pro license or above.

To set up email resend, we need to make sure that you’re logging the entire contents of your emails first. If you didn’t enable this option in the Setup Wizard, go to WP Mail SMTP » Settings.

WordPress SMTP settings

Next, click the Email Log tab to open your email log settings.

Email log settings tab

On this page, make sure you have the the Enable LogLog Email Content, and Save Attachments settings are enabled in the plugin’s Email Log settings page:

Email log attachments WordPress SMTP settings

Now you’ll want to send an email from your site so you have some data in your email log. For example, you could submit a message from your site’s contact form, or register a new user.

Once that’s done, we can test the email resend feature.

First, open WP Mail SMTP » Email Log to view your log entries.

WordPress email log menu item in WP Mail SMTP

Now click on View Log for any email that you want to resend.

new user registration email log

In the email log screen, click the Resend button under Actions on the right sidebar.

resend button in WP Mail SMTP

A popup will appear to confirm the email recipient. You can change the recipient or add multiple email addresses separated by commas.

Resend WordPress emails in WP Mail SMTP

Click YES and WP Mail SMTP will resend that email to all addresses you type in.

If you want, you can also resend emails in bulk. To do that, you can select the emails and use the dropdown on the main email log screen to send them again.

This feature is ideal for resending failed emails quickly. It’ll automatically resend them to the email address they were originally sent to.

Resend WordPress emails in bulk

If all of your emails are failing to send, you might have made a mistake during the configuration.

You can troubleshoot the problem by using a test email to make sure there are no errors in the settings you’ve entered.

That’s it! You now know how to configure your WordPress SMTP settings to send email without issues.

Fix Your WordPress Emails Now

Next, Check Your DNS Settings

If your DNS settings are not properly set up, you may notice your WordPress emails go to spam.

The DNS settings are usually held by your hosting company or domain registrar. You can start by creating a DMARC record for your domain. This will save your domain from being used to send phishing emails.

If you want to set up Gmail SMTP authentication you can see this article on sending WordPress emails from Gmail Alias.

Ready to fix your emails? Get started today with the best WordPress SMTP plugin. WP Mail SMTP Elite includes full White Glove Setup and offers a 14-day money-back guarantee.

If this article helped you out, please follow us on Facebook and Twitter for more WordPress tips and tutorials.

Comments

  1. We have tried to get this to works – now 3 days in and still not working – also why are we being forced to buy another package from the mailers you use when we have already paid you?

    1. Hi Ian,

      I noticed that you have already contacted our support channel.

      We will check your issue once we receive more information.

      Thanks!

  2. Can we forward an email from WP to a Yahoo email account

    1. Hi There,

      There’s no way to forward emails within WordPress. Usually, your WordPress notifications will be sent to the WordPress administrator email address. You can change that email address under the WordPress -> Settings -> General area or you need to set up email forwarding within your email account.

      Thanks!

  3. can i import email list on WP Mail SMTP or not i just need to know is it possible or no before i bought

    1. Hi Sara,

      We don’t have features like creating email campaigns, sending bulk emails to your lists, composing HTML newsletters, importing lists, or any other related email marketing capabilities within the WP Mail SMTP Pro plugin.

      When you configure WP Mail SMTP plugin on your site, below are some examples of website email notifications that can be routed through your WP Mail SMTP configured mailer.
      – WordPress user registration emails
      – WordPress reset password emails
      – Form email notifications (for example contact forms, quotation forms, payment forms created using WPForms plugin, Contact Form 7 or using similar plugins)
      – Order notification emails (if you have an eCommerce store set up on your site)
      – WordPress comment management emails (comment moderation / comment published)

      Technically, all of your website emails sent with the WordPress default wp_mail() function will be routed through your WP Mail SMTP configured mailer.

      Thanks!

  4. Mailer: Other SMTP SMTP Error: Could not connect to SMTP host.
    why 5 days and iam trying to fix it and it still not working

    1. Hi Laith,

      The error message indicates that your mail server refuses connection on port 25/465/587 and it is not able to connect to the remote mail server.

      You’ll need to contact your hosting provider with that error report to fix the server configuration or to see if anything is blocking (Firewall or ModSecurity rules).

      In the meantime, you may try setting up a different mailer instead of Other SMTP. You can see all the available mailers from here.

      Also in case if you require further assistance, please post your question on our support forum.

      Thanks!

  5. I have purchased the plugins and use other smtp as a mailer. The other email address I tested works fine but when I use my email address [email protected] for test it does not work I’m not receiving any emails sent through the Gravity forms.

    1. Hi Valerie,

      It looks like you have requested our white glove service.

      Your email deliverability will be improved once we set up your WP Mail SMTP plugin.

      Thanks!

  6. Hi,

    Please assist me to resolve the following issue:

    Constants: No
    ErrorInfo: SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server SMTP code: 111 Additional SMTP info: Connection refused
    Host: smtp.123-reg.co.uk
    P

    Kind Regards,
    Naveed

    1. Hi Naveed,

      The error message “Failed to connect to server: Connection refused” indicates that your web server refused SMTP connections on port 25/465/587, and it is not able to connect to the remote mail server.

      You’ll need to contact your hosting provider with that error report to fix the server configuration or to see if anything is blocking (Server Firewall / ModSecurity).

      I hope this helps. Thanks!

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.