Introduction
Sending e-mails is an essential part of any WordPress site: form notifications, registration confirmations, password resets or administrator alerts. However, the default WordPress configuration relies on the PHP mail()often unreliable and frequently blocked by hosting providers.
To guarantee optimal deliverability, we strongly recommend using a SMTP professional. SparkPost is one of the most powerful solutions on the market, offering an excellent sending reputation, precise e-mail tracking and an infrastructure designed for both high-volume sites and smaller projects.
In this tutorial, we'll look at how to configure SparkPost as SMTP server on WordPress using WPMasterToolKitstep-by-step. No advanced knowledge is required: just follow the instructions to make your WordPress site's emailing secure and reliable.
What is SparkPost
SparkPost is an e-mail delivery platform designed to improve the deliverability of messages sent from your website. It works by authenticating your domain so that users' e-mail providers (such as Gmail, Yahoo, Outlook, etc.) recognize your e-mails as coming from a trusted sender.
- Cost : An account Test allows you to send up to 500 e-mails per month. Paid offers are then invoiced according to the number of e-mails sent per month.
- Sender address requirements : To use SparkPost with WPMasterToolKit, you need an e-mail address associated with your site's domain.
- In a nutshell: Many of the world's leading brands rely on SparkPost for reliable e-mail delivery. It's a proven solution for businesses, offering excellent deliverability rates and advanced security features.
Setting up your SparkPost account
To get started, you need to set up your account SparkPost. Follow this link to create a new account.
Note: If you already have an account, use this link to log in. connect to your existing SparkPost account. You can then move on to adding a new sending domain.
For new users, it is necessary to choose the region of your e-mail server (US or EU).
If you are located in Europe, select SparkPost EU ➁. If not, choose SparkPost ➀ to use a server based in the USA.

You will then be asked to enter some basic information about yourself and your business, including :
- Your first name ➀
- Your name ➁
- Your company name ➂
- Your e-mail address ➃
- A password ➄

Once you have entered all the required information and clicked on Create Accountyou'll need to choose a formula.
The plan Test Account is selected by default and allows you to send up to 500 free e-mails per month.
Note: In this tutorial, we will use the Test Account. However, the steps remain similar, whatever plan you choose.
Once you have selected your formula, click on the Get Started to continue.

Add your shipping domain
Next, you need to add your shipping area to your account SparkPost. From your account dashboard, click on the Add Sending Domain.

On the next screen, click again on Add Sending Domain.

Note: If you've already set up another shipping domain in your account SparkPostbutton, the Add Sending Domain will not be visible at this point. In this case, click on the Add a Domain at top right of screen Domains to add and verify a new domain.
You'll then need to choose the type of domain to add. We recommend that you keep the default option Sending Domain.

You can check a subdomain in SparkPost and use an e-mail address associated with this subdomain, such as From Email in your WPMasterToolKit settings. This configuration is generally the best way to guarantee e-mail deliverability, as the reputation of your sub-domain as a sender is independent of that of your main domain.
Steps for setting up a subdomain as a sending domain SparkPost options differ slightly from those for setting up your main domain. We'll explain both options in more detail below.
Use a sub-domain as a sending domain
Once you've added a new shipping domain to your account SparkPostenter your e-mail subdomain in the field provided. This is the address from which you'll send your e-mails, and you'll need an e-mail address associated with this sub-domain to complete the rest of the steps in this tutorial.
Click on Save and Continue to add this subdomain to your SparkPost account.

Domain alignment
Next, a pop-up window will appear asking you to select yourdomain alignment.
For sub-domains, we recommend using the Strict alignment. This will set your sending domain and your bounce domain to the same value, which is generally the simplest solution.
To choose this option, select Yes ➀ at Verify this domain for bounce for strict alignment.
Once you've chosen your domain alignment preference, click on Save and Continue ➁ to continue.

Checking your sending domain
Next, you'll need to check your shipping domain. This process consists of adding DNS records to your settings DNS to inform e-mail providers that your subdomain is a reliable sender.
Note: You don't know how to add records DNS to check your subdomain in SparkPost ?
For detailed instructions, see our tutorial on add DNS records to configure your e-mail service.
As soon as you've finished adding your sending domain, SparkPost will display the 2 DNS records that you need to add.

Note: You will need to add the DNS provided by SparkPost at DNS settings for your main domain to check your subdomain.

Next, SparkPost will carry out conformity checks for your shipping domain. This process can take up to 24 heures and requires your DNS records to be correctly updated.
Once your subdomain has passed these checks, it will display 3 status indicators in the list Domains your account SparkPost : Sending, Bounceand DKIM Signing.

Note: It can take up to 48 hours so that any changes you make to your settings DNS be taken into account.
If you've followed all the above steps and your subdomain hasn't yet been verified, please wait and check back later.
In the meantime, you can continue with the other steps in this tutorial.
Use your main domain as the sending domain (not recommended)
Once you've added a new shipping domain to your account SparkPostenter the main area ➀ of your website in the field provided.
This is the address from which you'll send your e-mails, and you'll need an e-mail address associated with this domain to complete the rest of the steps in this tutorial.
Once you've entered your sending domain, click on Save and Continue ➁ to add your domain to your SparkPost account.

Domain alignment
When you register your shipping domain in SparkPosta pop-up window will appear asking you to choose yourdomain alignment.
If you use your main area as the sending domain, you must choose the option Relaxed alignment.
Select No at Verify this domain for bounce for strict alignmentthen click on the Save and Continue.

Create your SparkPost API key
To connect WPMasterToolKit to your account SparkPostyou'll need a API key.
To generate one, click on API Keys in the menu at the top of your account dashboard SparkPost.

On the next screen, click on the Create API Key.

Next, enter a name for your API key. It's for your reference only, so you can choose any name you like.
We recommend that you leave the API Permissions on All. When you are ready, click on the Create API Key at the bottom of the screen.

You will then be taken to a new screen displaying your SparkPost API key.

Then paste this value into the API Key your settings WPMasterToolKit.
Configuring WPMasterToolKit
Once you have set up your account SparkPostverified your domain and created an API key, you can configure WPMasterToolKit on your WordPress site.
First, open theWordPress administration space in a new browser tab or window. Make sure you have installed and activated the plugin WPMasterToolKit if you haven't already.
Then go to WPMasterToolKit " Settingsthen select the General.
From Email
First, you need to enter the e-mail address from which you wish to send all e-mails from your site in the field From Email.
This address must belong to the domain you have checked in SparkPost. We also recommend checking the Force From Email.
This ensures that all e-mails sent from your site, including those generated by other plugins, will use the same address. From Email. Consult our guide to understand how the parameter works Force From Email.
Visit From Name will be displayed as the sender on all e-mails from your site. By default, it's the name of your website, but you can change it to anything you like.

Select option SparkPost.

API key
Return to the browser tab or window containing your SparkPost API key ➀ and copy it by clicking on the appropriate button.
Region
Finally, in the Region ➁select server location SparkPost (US or EU) you chose when setting up your account.

Send a test e-mail
The final step in mailer configuration SparkPost is to send a test e-mail to check that your connection is working properly.
You can use the e-mail test tool from WPMasterToolKit for this.
To do so, go to the E-mail Testenter an e-mail address to which to send your test, then click on Send Now.

Conclusion
Configure SparkPost as an SMTP server on WordPress with WPMasterToolKit is an excellent way of ensuring that your e-mails arrive safely in your users' inboxes. By using a professional SMTP service such as SparkPostNot only do you improve the deliverability of your messages, but you also benefit from a secure and reliable infrastructure, suitable for both small sites and high-volume projects.
Thanks to this tutorial, you now know how to create your account. SparkPostadd and verify your domain, generate your API keyand configure WPMasterToolKit on your WordPress site. By testing the email delivery, you can ensure that everything is working properly and that your notifications, confirmations and alerts are reaching your users.
By following these simple steps, you can ensure that your WordPress site communicates effectively and professionally by e-mail, without the risk of your messages being blocked or classified as spam.