{"id":5522,"date":"2026-01-02T18:13:16","date_gmt":"2026-01-02T17:13:16","guid":{"rendered":"https:\/\/wpmastertoolkit.com\/?p=5522"},"modified":"2026-01-05T09:55:51","modified_gmt":"2026-01-05T08:55:51","slug":"comment-configurer-mailgun-comme-smtp-sur-wordpress-avec-wpmastertoolkit","status":"publish","type":"post","link":"https:\/\/wpmastertoolkit.com\/en\/how-to-configure-mailgun-as-smtp-on-wordpress-with-wpmastertoolkit\/","title":{"rendered":"How to configure Mailgun as SMTP on WordPress with WPMasterToolKit"},"content":{"rendered":"<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>Sending emails is a pillar of the smooth running of a WordPress site: contact forms, admin notifications, WooCommerce emails, password resets... Yet in many cases, emails sent by WordPress never reach their destination or end up in spam.<\/p>\n\n\n\n<p>Mailgun is one of the most reliable SMTP services for sending transactional e-mails. Used by many high-volume platforms, it offers excellent deliverability, stability and advanced tracking tools, while remaining relatively simple to set up.<\/p>\n\n\n\n<p>In this tutorial, we'll look at <strong>how to configure Mailgun as SMTP server on WordPress with WPMasterToolKit<\/strong>. From creating a Mailgun account to configuring the SMTP Mailer module, each step is explained step-by-step, enabling you to set up a reliable, secure e-mailing system that's perfectly suited to a WordPress site in production.<\/p>\n\n\n\n<p>Whether you're running a showcase site, a blog or a WooCommerce site, this guide will help you avoid deliverability problems and get back on track with your WordPress emails.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Mailgun?<\/h2>\n\n\n\n<p><a href=\"https:\/\/mailgun.com\/\">Mailgun<\/a> is a transactional e-mailing service renowned for its reliability and ability to handle very large volumes of e-mail. It is based on a secure API and offers a free 3-month trial period.<\/p>\n\n\n\n<p>Mailgun may take a little longer to set up than some other SMTP services. On the plus side, these extra steps mean you'll get <strong>high, stable deliverability<\/strong>This makes it a particularly reliable solution for WordPress sites in production.<\/p>\n\n\n\n<p><strong>Cost<\/strong><br>A free account, without a bank card, is limited to sending to 5 authorized recipients and allows you to send up to 5,000 e-mails per month for 3 months. Beyond that, rates start at 0.80 $ for 1,000 e-mails.<\/p>\n\n\n\n<p><strong>Sender address requirements (From Email)<\/strong><br>Mailgun generally works with any sender address. However, for optimum deliverability, we recommend using an e-mail address linked to your domain name.<\/p>\n\n\n\n<p><strong>In a nutshell<\/strong><br>Mailgun is one of the most reliable e-mail solutions on the market, and offers very competitive pricing. However, it requires access to your domain's DNS (Domain Name System) configuration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Mailgun configuration with WPMasterToolKit<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Create a Mailgun account<\/h3>\n\n\n\n<p>To begin configuration, you need a Mailgun account.<br>If you haven't already done so, the first step is to <a href=\"https:\/\/signup.mailgun.com\/new\/signup\">create your Mailgun account <\/a>in order to continue setting up the SMTP service.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"\" fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"679\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-1024x679.png\" class=\"wp-image-5524\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-1024x679.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-300x199.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-768x509.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-18x12.png 18w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image.png 1116w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Note:<\/strong> Mailgun accounts created without a bank card are limited to sending e-mails to just 5 recipients.<br>Registration remains free, but you will need to add a credit card to your account if you wish to lift this restriction.<br>For further information, please consult <a href=\"https:\/\/signup.mailgun.com\/new\/signup\">Mailgun registration page<\/a>.<\/p>\n<\/blockquote>\n\n\n\n<p>Once you have completed the registration form, you will be asked to perform a few additional verification steps. These different levels of verification enable Mailgun to maintain a high level of e-mail deliverability for all its users.<\/p>\n\n\n\n<p>First, you'll receive an e-mail to validate your Mailgun account. To start the verification process, click on the <strong>\"Verify your email address<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"\" decoding=\"async\" width=\"627\" height=\"583\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-1.png\" class=\"wp-image-5525\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-1.png 627w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-1-300x279.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-1-13x12.png 13w\" sizes=\"(max-width: 627px) 100vw, 627px\" \/><\/figure>\n\n\n\n<p>After clicking this button, you will be asked to enter a cell phone number in order to receive a verification code by SMS.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"\" decoding=\"async\" width=\"638\" height=\"561\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-2.png\" class=\"wp-image-5526\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-2.png 638w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-2-300x264.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-2-14x12.png 14w\" sizes=\"(max-width: 638px) 100vw, 638px\" \/><\/figure>\n\n\n\n<p>Once you've completed these steps, you'll be automatically connected to your Mailgun account.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Add a domain<\/h3>\n\n\n\n<p>Once logged in, you should arrive at the Mailgun dashboard.<br>When you're ready, go to the left-hand menu and click on <strong>Sending \" Domains<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"617\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-3.png\" class=\"wp-image-5527\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-3.png 681w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-3-300x272.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-3-13x12.png 13w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><\/figure>\n\n\n\n<p>On page <strong>Domains<\/strong>click on the <strong>\"Add New Domain<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"130\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-4-1024x130.png\" class=\"wp-image-5528\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-4-1024x130.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-4-300x38.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-4-768x98.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-4-1536x195.png 1536w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-4-18x2.png 18w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-4.png 1614w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Note:<\/strong> If you don't see the button for adding a new domain, it probably means that you haven't entered your credit card details yet.<br>Mailgun requires all accounts (including free accounts) to add a credit card before they can continue.<\/p>\n<\/blockquote>\n\n\n\n<p>Next, enter a <strong>subdomain<\/strong> of your main domain name. A sub-domain replaces the \"www\" part of your site address, for example : <code data-no-auto-translation=\"\">subdomain.example.com<\/code>.<br>Sub-domains can be used to create separate sections of a site (such as some sites that use <code data-no-auto-translation=\"\">blog.example.com<\/code> for their blog).<\/p>\n\n\n\n<p>In this case, the subdomain will only be used by Mailgun to send e-mails and <strong>will not be visible on your site<\/strong>.<\/p>\n\n\n\n<p>You can simply use a subdomain such as <code data-no-auto-translation=\"\">mail.example.com<\/code> or <code data-no-auto-translation=\"\">mg.example.com<\/code>. The exact name doesn't matter, but using <code data-no-auto-translation=\"\">mail<\/code> or <code data-no-auto-translation=\"\">mg<\/code> allows you to more clearly identify the use of this sub-domain.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"895\" height=\"672\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-5.png\" class=\"wp-image-5529\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-5.png 895w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-5-300x225.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-5-768x577.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-5-16x12.png 16w\" sizes=\"(max-width: 895px) 100vw, 895px\" \/><\/figure>\n\n\n\n<p>In the <strong>Domain region<\/strong>you'll have to choose between two regions: <strong>US<\/strong> or <strong>EU<\/strong>.<br>If your site is hosted in the European Union, select <strong>EU<\/strong>.<br>If your site is hosted outside the European Union, leave the option <strong>US<\/strong> selected by default.<\/p>\n\n\n\n<p>Then click on the <strong>\"Advanced settings (DKIM)<\/strong> to access advanced options.<br>This setting adds an extra layer of security for spam protection.<\/p>\n\n\n\n<p>We recommend selecting the <strong>2048<\/strong>which generates a longer, more secure DKIM key.<br>To finish, click on the <strong>\"Add Domain<\/strong> to continue.<\/p>\n\n\n\n<p>For the rest of the tutorial, please keep this tab or window open, as we'll be coming back to this page a little later.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Checking your domain<\/h3>\n\n\n\n<p>To protect site owners and their visitors, some SMTP services (including Mailgun) require domain verification by adding records to your site's DNS.<br>You can find out more about the benefits of this verification in the <a href=\"https:\/\/documentation.mailgun.com\/en\/latest\/quickstart-sending.html#verify-your-domain\" target=\"_blank\" rel=\"noreferrer noopener\">Mailgun guide<\/a> dedicated.<\/p>\n\n\n\n<p>To get started, you need to access your domain's DNS settings.<br>If you don't know where to find them, Mailgun provides useful links directly on the configuration page when adding a new domain.<\/p>\n\n\n\n<p>Once you've opened your domain's DNS settings, you should see an option to add a new record.<\/p>\n\n\n\n<p>To allow Mailgun to check your domain, you will need to add <strong>two TXT records<\/strong> in your site's DNS.<br>Be sure to copy them accurately, as verification requires the correct <strong>exact values provided by your Mailgun account<\/strong> to work properly.<\/p>\n\n\n\n<p>In <strong>Domain settings &gt; DNS records<\/strong> click on <strong>Actions<\/strong> then on <strong>Turn on automatic sender security.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"483\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-6-1024x483.png\" class=\"wp-image-5531\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-6-1024x483.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-6-300x142.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-6-768x363.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-6-1536x725.png 1536w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-6-18x8.png 18w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-6.png 1612w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Note:<\/strong> If your DNS is managed by GoDaddy, you will need to slightly adapt the field <strong>Hostname<\/strong> indicated by Mailgun.<br>You will need to delete your main domain name when entering the <strong>Hostname<\/strong> in GoDaddy's DNS zone.<\/p>\n\n\n\n<p>For example, instead of entering <code data-no-auto-translation=\"\">mg.yourdomain.com<\/code> for the <strong>Hostname<\/strong> of the first TXT record, simply enter <code data-no-auto-translation=\"\">mg<\/code>.<\/p>\n<\/blockquote>\n\n\n\n<p>In your domain's DNS settings, you may also see a field called <strong>TTL (Time To Live)<\/strong> for each recording.<br>If you have the possibility of modifying it, we recommend that you set the TTL to <strong>one day<\/strong> (or <strong>86400 seconds<\/strong>depending on the unit used by your DNS manager).<\/p>\n\n\n\n<p>Once the two recordings <strong>TXT<\/strong> you will have to proceed in the same way to add the <strong>recordings <\/strong>next present in <strong>Sending records<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"481\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-7-1024x481.png\" class=\"wp-image-5532\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-7-1024x481.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-7-300x141.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-7-768x361.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-7-18x8.png 18w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-7.png 1296w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Then add the <strong>Receiving records<\/strong> and <strong>Tracking records<\/strong> then click on <strong>Enable DMARC<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"609\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-9-1024x609.png\" class=\"wp-image-5534\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-9-1024x609.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-9-300x178.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-9-768x457.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-9-18x12.png 18w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-9.png 1300w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Checking the status of your Mailgun domain<\/h3>\n\n\n\n<p>Mailgun should now check that your domain's DNS records are correctly configured.<br>This check may take some time (sometimes <strong>24 to 48 hours<\/strong>), because DNS records are not propagated immediately.<\/p>\n\n\n\n<p>You can check the validation status of your domain by clicking on the <strong>\"Check status<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"477\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-10-1024x477.png\" class=\"wp-image-5535\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-10-1024x477.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-10-300x140.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-10-768x358.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-10-1536x715.png 1536w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-10-18x8.png 18w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-10.png 1596w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You should see the status <strong>Verified<\/strong> if everything is OK.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"311\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-11-1024x311.png\" class=\"wp-image-5536\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-11-1024x311.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-11-300x91.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-11-768x233.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-11-18x5.png 18w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-11.png 1305w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Configuring the SMTP module in WPMasterToolKit<\/h3>\n\n\n\n<p><strong>MasterToolKit<\/strong>.<\/p>\n\n\n\n<p>Before you start, make sure that <strong>WPMasterToolKit is properly installed and activated<\/strong> and that SMTP Mailer is active on your WordPress site.<\/p>\n\n\n\n<p>See you in <strong>WPMasterToolKit \" SMTP Mailer<\/strong> to access the SMTP module configuration page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">From Email<\/h3>\n\n\n\n<p>Visit <strong>From Email<\/strong> is the e-mail address from which all e-mails from your site will be sent. This address must use <strong>the same domain name as the one authorized in Brevo<\/strong>.<\/p>\n\n\n\n<p>For example, if you have authorized the <code data-no-auto-translation=\"\">example.com<\/code>address <strong>From Email<\/strong> must also contain this domain (for example : <code data-no-auto-translation=\"\">contact@example.com<\/code>).<\/p>\n\n\n\n<p>You can also check the <strong>\"Force the usage of the sender name\/email...\"<\/strong>.<br>If you want to use the same sender address for the whole site, this option will save you from having to change e-mail settings in different WordPress plugins or features.<\/p>\n\n\n\n<p>By default, the <strong>From Name<\/strong> is the name of your site. You can, however, change the name and add any text you like.<\/p>\n\n\n\n<p>You can also activate the <strong>\"Force From Name<\/strong> to apply this sender name to all e-mails sent from your site.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"914\" height=\"319\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-131.png\" class=\"wp-image-5512\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-131.png 914w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-131-300x105.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-131-768x268.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-131-18x6.png 18w\" sizes=\"(max-width: 914px) 100vw, 914px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Mailgun API key<\/h3>\n\n\n\n<p>Even if the verification of your domain is still pending, Mailgun has already made this information available to you. In fact, you may have automatically received an e-mail containing your <strong>Mailgun API key<\/strong>.<br>If not, return to the tab or window displaying the details of your Mailgun domain.<\/p>\n\n\n\n<p>In the top right-hand corner of your Mailgun account, click on the small circle with your initials, then select the option <strong>\"API Security<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"427\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-12.png\" class=\"wp-image-5538\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-12.png 480w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-12-300x267.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-12-13x12.png 13w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<p>You will then be redirected to a page displaying your Mailgun API keys.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Note:<\/strong> In your Mailgun account, you will usually see <strong>three API keys<\/strong> :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Verification Public key<\/strong><\/li>\n\n\n\n<li><strong>HTTP Webhook Signing key<\/strong><\/li>\n\n\n\n<li><strong>Mailgun API keys<\/strong><\/li>\n<\/ul>\n\n\n\n<p>We recommend using <strong>the \"Mailgun API key<\/strong> to configure emailing on your WordPress site with WPMasterToolKit.<br>The use of <strong>Verification Public key<\/strong> will lead to deliverability problems for e-mails to your site.<\/p>\n<\/blockquote>\n\n\n\n<p>To generate your Mailgun API key, scroll down the page to section <strong>\"Mailgun API keys<\/strong>then click on the <strong>\"Create API key<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-13-1024x618.png\" class=\"wp-image-5539\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-13-1024x618.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-13-300x181.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-13-768x464.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-13-18x12.png 18w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-13.png 1328w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>A modal window will then open, allowing you to add a description for your API key.<br>We recommend that you provide a clear description so that you can easily remember how to use the key.<\/p>\n\n\n\n<p>When ready, click on the <strong>\"Create Key<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"618\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-14-1024x618.png\" class=\"wp-image-5540\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-14-1024x618.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-14-300x181.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-14-768x463.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-14-18x12.png 18w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-14.png 1323w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>A new modal window will then appear with your <strong>new API key<\/strong>.<br>Make sure you copy it and keep it in a safe, accessible place, because this key <strong>is displayed only once<\/strong>.<\/p>\n\n\n\n<p>You can copy it by clicking on the copy icon next to the key.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"842\" height=\"621\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-15.png\" class=\"wp-image-5541\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-15.png 842w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-15-300x221.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-15-768x566.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-15-16x12.png 16w\" sizes=\"(max-width: 842px) 100vw, 842px\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Note:<\/strong> If you lose your Mailgun API key, you'll need to generate a new one by repeating the previous steps in this section.<\/p>\n<\/blockquote>\n\n\n\n<p>Once the complete key has been copied, return to the SMTP settings for <strong>WPMasterToolKit<\/strong> and paste it into the <strong>Mailgun API Key<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"284\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-16-1024x284.png\" class=\"wp-image-5542\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-16-1024x284.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-16-300x83.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-16-768x213.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-16-18x5.png 18w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-16.png 1388w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Note:<\/strong> If you have an old Mailgun account, your key may begin with the prefix <strong><code data-no-auto-translation=\"\">key-<\/code><\/strong>.<br>Be sure to copy this prefix and include it in the SMTP settings for <strong>WPMasterToolKit<\/strong>Failure to do so could lead to verification problems.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Domain name<\/h3>\n\n\n\n<p>In the <strong>Domain Name<\/strong>enter the sub-domain you have created in Mailgun (for example : <code data-no-auto-translation=\"\">mg.example.com<\/code>).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"285\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-17-1024x285.png\" class=\"wp-image-5543\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-17-1024x285.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-17-300x84.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-17-768x214.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-17-18x5.png 18w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-17.png 1392w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Region<\/h3>\n\n\n\n<p>Finally, check the <strong>Region<\/strong>.<br>This must correspond to the region you have defined in Mailgun.<br>If your site is hosted outside the European Union, select the option <strong>US<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"309\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-18-1024x309.png\" class=\"wp-image-5544\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-18-1024x309.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-18-300x90.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-18-768x231.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-18-18x5.png 18w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2026\/01\/image-18.png 1384w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Note:<\/strong> Before continuing, please ensure that the domain verification process has been completed.<br>This may take some time, so you may need to revisit this step at a later date.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">Configuration test<\/h3>\n\n\n\n<p>Once you've saved your settings, you can now run an email test to make sure everything's OK.<\/p>\n\n\n\n<p>Go to the <strong>E-mail test<\/strong>then enter an e-mail address to which you would like to send your test, then click on <strong>Send Now.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"832\" height=\"412\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-89.png\" class=\"wp-image-5458\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-89.png 832w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-89-300x149.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-89-768x380.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/12\/image-89-18x9.png 18w\" sizes=\"(max-width: 832px) 100vw, 832px\" \/><\/figure>\n\n\n\n<p>If you receive an error message, go back and check the previous steps.<\/p>\n\n\n\n<p>If you get a confirmation message and receive the email, you've finished configuring.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\n\n\n\n<p>Setting up Mailgun as an SMTP server on WordPress with WPMasterToolKit requires a little more rigor than a more \"turnkey\" SMTP solution, not least because of DNS settings and domain verification. In return, you benefit from excellent deliverability, great stability and a system that's perfectly suited to WordPress sites in production, including those that send a high volume of e-mails.<\/p>\n\n\n\n<p>Once the configuration is complete and the send test validated, you'll have a sound, professional basis for all your site's e-mails: forms, notifications, WooCommerce, user accounts, etc. By centralizing this configuration via WPMasterToolKit's SMTP Mailer module, you also simplify maintenance and avoid scattered settings in different plugins.<\/p>\n\n\n\n<p>If you're looking for a reliable, scalable and proven solution for sending transactional e-mails on WordPress, Mailgun remains an excellent choice today. You can now send your e-mails with complete peace of mind, with a robust configuration that complies with good deliverability practices.<\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction Sending emails is an essential part of running a WordPress site: contact forms, admin notifications, WooCommerce emails, password resets... However, in many cases, emails sent by WordPress never reach their destination or end up in spam. Mailgun is one of the most reliable SMTP services for sending [...]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_surecart_dashboard_logo_width":"180px","_surecart_dashboard_show_logo":true,"_surecart_dashboard_navigation_orders":true,"_surecart_dashboard_navigation_invoices":true,"_surecart_dashboard_navigation_subscriptions":true,"_surecart_dashboard_navigation_downloads":true,"_surecart_dashboard_navigation_billing":true,"_surecart_dashboard_navigation_account":true,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5522","post","type-post","status-publish","format-standard","hentry","category-non-classe"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/posts\/5522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/comments?post=5522"}],"version-history":[{"count":5,"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/posts\/5522\/revisions"}],"predecessor-version":[{"id":5550,"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/posts\/5522\/revisions\/5550"}],"wp:attachment":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/media?parent=5522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/categories?post=5522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/tags?post=5522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}