how to configure your wordpress smtp settings

How to Configure WordPress SMTP Settings (and Set Up Email)

Editorial Note: We may earn a commission when you visit links on our website.

Do you want to configure your WordPress SMTP settings and set up emails?

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.

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 let the experts do it for you

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 with a WP Mail SMTP license.

Add White Glove Setup

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.

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

You can purchase White Glove Setup with your license, or if you prefer, you can add it on later. To get setup assistance, 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

When you install WP Mail SMTP, it’s important to choose a mailer and complete the entire set up process. If you leave the plugin on the default setting (PHPMailer), it won’t do anything to help with email deliverability.

Luckily, email set up is simple. We’ve 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, including the free version. We’ll show you how to install the Pro version here so you can see the useful features that are included with Pro.

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,, or Brevo. 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 the Other SMTP mailer option 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 Microsoft 365 /
Brevo Zoho Mail
Google Workspace / Gmail
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.

Enable Email Logging and Email Alerts

After successfully adding 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.

Set Up Additional Connections

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 mailer connections 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.

Set Up 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.

Resend Failed Emails

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 Log, Log 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

FAQs on WordPress SMTP Settings

Want to know more about using SMTP to deliver emails in WordPress? We’ve got you covered.

How Do I Set Up SMTP in WordPress?

You can set up SMTP in WordPress using an SMTP plugin. We recommend WP Mail SMTP — it’s the best SMTP plugin for WordPress because it has email logging, email failure alerts, and many more useful features.

What Is WP Mail SMTP?

WP Mail SMTP is the best SMTP plugin for WordPress. It lets you fix your emails by sending them through an email provider. This is more reliable than sending emails from your webserver. You can read more about the plugin in this WP Mail SMTP review.

How Do I Set Up WP Mail SMTP with Gmail?

You can set up WP Mail SMTP with Gmail by following the steps in our Gmail setup doc.

You can also use WP Mail SMTP to send emails from a Gmail alias, which gives you the flexibility of using multiple email senders in WordPress.

Why Am I Not Receiving Emails From My WordPress Site?

In most cases, you won’t receive emails if your messages are being caught by a spam filter between your web host (where the email is generated) and your mailbox.

Emails pass through multiple servers on their way to your mailbox. Any one of these could be catching your messages and marking them as spam.

This can happen suddenly. One day, everything might work just fine and your emails might be delivered without a hitch. The next, you might find that your emails just stop working. Sometimes this happens because your server is IP on a blacklist or errors with SMTP hosts, but it’s hard to know.

If your email is not getting through, or it’s being filed in the junk mail, check out our guide on how to stop WordPress emails going to spam.

Next, Check Your DNS Settings

Your DNS settings are usually held by your hosting company or domain registrar. There re 3 important DNS records that stop emails going to spam: DMARC, DKIM, and SPF.

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.


  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.


  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.


  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.


  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.


  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.


  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

    Kind Regards,

    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!

  7. Not that you would do such a thing ;), but would it be theoretically *possible* for the plugin to read emails using the OAuth credentials, or is the read permission locked down from the Gmail side?

    1. Hi Mat,

      You’re actually creating a private Google APP, and you’re using your Client ID, Client Secret to connect to the APP.

      We use various scopes of Gmail API to perform different tasks. For example, to send emails there’s one scope and to retrieve basic user info (like your optional Gmail alias addresses), there’s another scope.

      We added that redirect through our site just so we could resolve the issue some users had with mod_security preventing them from completing the connection (when they were redirected back to their site, they got a 403 forbidden error – or something similar).

      Basically, we cannot read data from our end. The actual Gmail mailer connection will be created between your WordPress site and your Google App.

      As I have checked with our developers, we use the global scope to connect with Gmail / Google Workspace email platforms. In this way, if we push an update for a different scope, it will still be backward compatible. So the existing users won’t have to recreate Google connection every time there’s an API scope change.

      I hope that’s clear. Thanks!

    1. Hi Teja,

      I apologize for the confusion, but Cloudflare is not a mailer. Cloudflare is a content delivery network (CDN) and cloud security platform that provides website optimization, security, and performance.

      Basically, you can use Cloudflare service to manage your DNS records. For example, if you choose a mailer like SendLayer, here’s how you can use Cloudflare to manage SendLayer DNS records.

      I hope this helps. Thanks!

    1. Hi Rubens,

      When you get a chance, could you please create a support thread with more details so that our support team should be able to assist you accordingly.

      In case it helps, you can see all the available mailers from here.

      I hope this helps. Thanks!

  8. Hello Darshana,

    It seems I could, at last, do what I was planning to do. However, there is one little issue that is left undone. That is changing the email address only in the section “from” when I write a reply.

    Because I want the potential receiver (who filled in the contact form) in my reply sees the message sent from a private email address and not my WP admin address, in spite of the fact I write reply using my Gmail account (in my case Gmail account is the admin account in WP where I receive the messages from “the contact form” ), whereas my private email account (OX Mail) is an Email set for my website with the same domain name.

    Hope I made myself clear. So my questions are:

    Is there any way or trick to make it as mentioned above?
    Is it possible to change?
    If yes, what should I change and where?

    Thank you in advance,

    1. Hi Dan,

      If I understood correctly, you want to contact the user who filled out your form using a different “from email” address.

      If you’re using Gmail, you have the ability to add an email alias by following this guide.

      Then, when you reply to your emails within Gmail, you can change the “from email” address.

      I hope this helps. Thanks!

  9. Im trying to set up WP Mail SMTP and it is giving me this error message: Mailer: Sendinblue unauthorized: Key not found

    How can I fix this?

    1. Hi Cierra,

      When you access the SMTP & API section, by default, it will load the SMTP section instead of the API section.

      You need to switch over to the API Keys tab to generate a new API key.

      Once you update your API key under the WP Mail SMTP -> Settings page, you should be able to send a test email (WP Mail SMTP -> Tools).

      I hope this helps. Thanks!

  10. Hello, I followed the youtube tutorial step by step and i got this message when I pressed the button “Connect to google”

    “ has not completed the Google verification process. The app is currently being tested, and can only be accessed by developer-approved testers. If you think you should have access, contact the developer.
    If you are a developer of, see error details.
    Error 403: access_denied”

    Any advise?

    1. Hi Davis,

      This error message typically occurs when the permissions for your Google App are set to testing mode in Google Cloud. To resolve this issue, please follow the steps outlined in this guide on how to fix it.

      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.