How to Set up the Mailer in WP Mail SMTP

Are you having issues with WordPress email delivery and want to fix it for good? The mailer is an established and reliable service that helps improve email deliverability.

So in this tutorial, we’ll show you how you can use the mailer with WP Mail SMTP to make sure all of your emails get delivered to inboxes successfully.

Here’s a table of contents to help you navigate this tutorial:

  1. Set Up Your Account
  2. Add the SPF Record to Your Site’s DNS
  3. Set Up WP Mail SMTP
  4. Sending a Test Email

What Is

what is smtpcom has a market leader in email delivery and the preferred choice for 100,000+ businesses for 22+ years. They are known for their ease of integration, human support, and a powerful API.

They offer a free trial, which allows 50,000 emails to be sent during the first 30 days. After that, you’ll need a paid plan which can include much higher sending limits based on your plan.

But in order to complete the mailer setup in WP Mail SMTP, you’ll need to have:

  • A domain-specific email address (like [email protected])
  • A credit card (this is required to complete registration)
  • Access to your site’s DNS records

Now that you’ve got all those things, let’s connect your mailer to WP Mail SMTP.

How to Set Up the Mailer in WP Mail SMTP can help solve issues like Gravity Forms not sending email. If you’re ready for your emails delivering reliably, let’s get started with this tutorial.

1. Set Up Your Account

First, you’ll need an account with This account is going to connect to your WordPress site to have your emails deliver reliably.

If you already have an account, go ahead and log in. Or if you don’t have an account yet, go ahead and create one now.

start free trial of

In this example, we’ll register for a brand new free trial. However, the setup will be the same no matter what type of account you have.

If you’re creating a new account with, you’ll need a few additional steps after registering. These steps help prevent spammers from signing up, which is a part of how their service is so reliable.

First, be sure to check your email inbox and then follow their activation link. You’ll also need to agree to their usage policy.

Next,’s team will review and approve your account (which may take up to 24 hours). This approval will most likely require you to provide additional details and clarification, so please keep an eye on your email inbox.

Once your account is all set up, or you’ve logged into an existing account, you’ll be ready to start the setup process. Keep this window open, though, as we’ll use it in the next step.

2. Add the SPF Record to Your Site’s DNS

Alright, the next important step is authentication. This helps show email inbox providers that your emails are being sent from a legitimate source. uses an SPF record to help authenticate your emails, so you’ll need to add this record to your site’s DNS settings. If you have additional questions about DNS or feel unsure about what to do, please contact your site’s hosting provider before attempting any changes.

To get started, scroll to the top menu of your account. And navigate to Account » My Settings.

open smtp settings

Under the General Settings, you should see an SPF record that looks like:

v=spf1 ~all

spf record location in SMTPcom

You’ll need to add this record to the DNS settings for your site.

If you already have an SPF record, don’t add another one! Instead, check out how to merge multiple SPF records. This is super important because having multiple SPF records can result in email servers ignoring both of them.

In your site’s DNS settings you may also see a TTL (Time To Live) field for the record. If you’re able to edit this, we recommend setting the TTL to 1 day (or 86400 seconds, depending on the units your DNS uses).

After the SPF record has been added, you can check whether has been able to validate that record yet. To do this, click on the Deliverability tab in your account or simply follow this link.

Toward the bottom of that page, there will be a section called SPF Record Domain Check. In the Domain field, enter your site’s URL. Then, click the Validate button.

checking spf records for domain

The validation result will appear in a red box near the top of the page. If was able to verify your SPF record successfully, then it will display a “Pass” status in this box.

successful validation screen

DNS changes can sometimes take up to 48 hours to finish, so you may need to check back on this later. But no matter what your domain’s SPF status is right now, you can move on to the next step. Or, once your forms emails are being reliably delivered, you may want to jump into learning how to turn them into conditional logic forms.

3. Set Up WP Mail SMTP

Now that your account is ready to be used, we can head over to set up WP Mail SMTP. When you’re ready, go ahead and log into your WordPress site.

If you haven’t already, be sure to also install and activate the WP Mail SMTP plugin. Make sure to avoid any unauthorized WP Mail SMTP nulled plugins to keep your site safe.

Once WP Mail SMTP is installed,  click on WP Mail SMTP » Settings in the left WordPress menu.

We’ll discuss each of this page’s settings in detail below.

From Email

The From Email is the email address that all of your site’s emails will be, you guessed it, sent from. This should be a domain-specific email address like [email protected].

If you’d like the From Email to be the same site-wide, you can check the box labeled Force From Email. This will save you the trouble of editing the email settings throughout your site (in all form emails, etc).

We strongly recommend you check this box.

Adjust From Email in WP Mail SMTP settings

From Name

The From Name is set to the site name by default. However, you can change this to any text you’d like.

You can also check the box next to Force From Name to apply this setting to all of your emails across your site.

Adjust From Name in WP Mail SMTP settings

Return Path does not support the Return Path option, so you can skip this setting.

WP Mail SMTP Mailer

Next in the Mailer section, select the option.

Select the SMTP com mailer in WP Mail SMTP

Next up, you’ll need to fill in the API Key and Sender Name from your account.

We’ll show you exactly what to do in the sections below. Let’s start with the API Key.

API Key:

To locate the API Key for your account, click on the Get API Key link (or follow this link).

Follow the API Key link within WP Mail SMTP

After clicking on that link, you should see the API page in your account. On this page, copy everything you see in the Key column.

copying your api key

Now that you’ve copied this Key value, return to your WP Mail SMTP settings and paste that into the API Key field.

api key for smtp

Sender Name:

Now that your API Key has been added, we’ll move down to the next field in WP Mail SMTP’s settings which is the Sender Name. To find the value needed for this field, you’ll need to click on the Get Sender Name link.

Follow the Get Sender Name link in WP Mail SMTP

This link should open the Senders page of your account. Here, you’ll need to copy the value under the Name column.

copy senders name

After copying the Name value, switch back over to your WP Mail SMTP settings and paste it into the Sender Name field.

Now that all of the WP Mail SMTP settings have been completed, click the Save Settings button.

Save settings in WP Mail SMTP

4. Send a Test Email

Before moving forward with this step, please check your Deliverability Settings to confirm that your site’s SPF Status has been set to Pass.

Now that your and WP Mail SMTP settings are ready to go, it’s time to send a test email. To do this, click on the Email Test tab in your site’s WP Mail SMTP settings.

Open the Email Test tab in WP Mail SMTP

On this tab, you can enter any email address that you have access to. Then, click the Send Email button.

Once the email has processed, you should see a success message.

Notice showing the WP Mail SMTP test email sent successfully

Next, check the inbox for that email address. You should soon receive the email for this test.

successful test email sent smtp

Last, you’ll need to confirm that this test email was properly sent through your account. To do that, go ahead and click on this link to open your Deliverability Settings page.

If the email was successfully sent through your account, you’ll see a Pass status next to your domain.

checking spf status

If you do not see a Pass status, then please review Steps 1-3 to confirm that all details have been completed.

In Conclusion

That’s it! You now know how to set up the mailer with WP Mail SMTP to get your site’s emails delivering reliably. This can help to fix lots of WordPress email issues, including Ninja Forms not sending email.

If you need more help with notifications, check out our guide to fixing your WordPress contact form not sending email with SMTP.

So what are you waiting for? Get started with the most powerful WordPress forms plugin today.

And if you liked this post, make sure to follow us on Facebook and Twitter for more free WordPress tutorials.

Using WordPress and want to get WPForms for free?

Enter the URL to your WordPress website to install.

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.