WordPress Not Sending Email

WordPress n'envoie pas d'e-mail ? Voici ce que vous pouvez faire

WordPress not sending email?

If your WordPress site stops sending emails, it can result in a direct loss to your business. You could end up losing valuable leads and potential customers. Or you could end up completely breaking the experience for your existing customers.

But what’s the problem, really? Why isn’t your WordPress site sending emails?

And more importantly, how do you fix it?

In this article, we’ll answer all these questions and give you an easy way to fix the issue.

Plongeons dans le vif du sujet.

Why is WordPress Not Sending Email Notifications?

It’s a common issue among WordPress users and chances are high that it has nothing to do with your installed themes or plugins.

Your WordPress site can’t send emails because your hosting provider isn’t properly configured to send emails. And you may not even get notified of contact form submissions.

Just imagine the number of leads and potential customers you could lose in a matter of hours. For an online store, you may end up in a scenario where people buy from you, but none of your automated emails are sent. That can lead to a lot of confusion and even a loss of trust in your customers.

Let’s take a closer look at the technical end of the problem.

WordPress handles user registration emails using built-in PHP code called the wp_mail() function:

WordPress not sending email

This is a big problem because not all WordPress hosts are configured properly to use PHP mail.

And even if the servers are configured properly, Gmail and other email service providers use strict spam filters. These spam filters try to verify automatically that your email is coming from your business and not a fraudulent third party. That’s where most of your emails get blocked or flagged as spam.

How to Fix the WordPress Not Sending Email Issue

The right way to deal with the issue is to send your emails using SMTP instead of relying on WordPress’ PHP mail.

And we’re going to show you how to use an SMTP service to make sure that your email is always delivered. All you need to do is install the WP Mail SMTP plugin.

WP Mail SMTP

The WP Mail SMTP plugin will help you fix your email delivery issues in a few simple steps. And it’s not technical at all. It’s super simple and anyone can do it. So, go ahead and install and activate the plugin. If you’re not sure how to do that, this tutorial will show you how to install a WordPress plugin.

Step #1: Installing the WP Mail SMTP Plugin

Once you’re done installing the plugin, head over to your WordPress dashboard and click on WP Mail SMTP to configure the plugin:

Configuration de WP Mail SMTP

After you enter your license key, enter your email and name in the Mail section:

Clé de licence WP Mail SMTP

NOTE: Make sure that you enter the same email address as the one you’ll be using for your SMTP service. If there are conflicting emails, you’ll keep getting errors from the email service provider dashboard.

Ne vous inquiétez pas si vous utilisez une autre adresse e-mail sur d'autres plugins WordPress tels que WPForms. WP Mail SMTP force les autres plugins à utiliser automatiquement l'adresse e-mail que vous utilisez pour configurer votre service SMTP.

That’s all for now. 

Step #2: Selecting an Email Service Provider

Next, you’ll need to choose an SMTP mailing service for your site. We recommend using SMTP.com. But you can find a lot of different services there.

Head over to your WordPress dashboard and go to WP Mail SMTP » Settings.

Then, under Mailer, select a service provider. You can choose between a whole host of options:

Connexions WP Mail SMTP

We recommend using SMTP.com:

Se connecter à SMTP

To finish setting up the WP Mail SMTP plugin, you’ll have to create an account with SMTP.com next. It’s a super popular SMTP service that allows you to send bulk emails with high delivery rates.

Step #3: Creating an SMTP Account

Allez-y et créez un nouveau compte :

Essai gratuit SMTP

Once you’ve signed up, you’ll be asked to click on an activation link via email and confirm your identity.

So, keep an eye out for multiple emails.

And then, go back to the WP Mail SMTP plugin to connect your SMTP account to the plugin.

La fenêtre contextuelle demandera une clé API que vous pouvez obtenir à partir de votre tableau de bord SMTP.com. Cliquez sur le lien Obtenir la clé API (cliquez sur ce lien pour y accéder directement) :

Clé API SMTP

You should see a table on this page. Copy the API Key in the Key column:

Ajouter la clé API SMTP à WP Mail SMTP

Then paste this API key in WP Mail SMTP:

Coller la clé API SMTP dans WP Mail SMTP

Finally, in the Sender Name field, click on the Get Sender Name link:

Obtenir le nom de l'expéditeur

Copy the name in the Name column:

Coller le nom de l'expéditeur

And paste it in WP Mail SMTP.

Then hit Save Settings:

Enregistrer les paramètres

Step #4: Adding the SPF Record to Your DNS

Now, you’ll have to add the SPF record to your DNS records.

If you don’t know what any of these mean, don’t worry. We’ll explain.

The Sender Policy Framework (SPF) is how SMTP.com authenticates your emails. Implementing this step ensures that your emails won’t get kicked into the Spam inbox.

Rendez-vous dans le menu de navigation de votre compte SMTP.com et cliquez sur Compte » Mes paramètres :

Paramètres du compte SMTP

Then, go to General Settings and look under SPF Record:

Paramètres SPF SMTP

You’ll need to add this SPF record to the DNS settings for your site. If you don’t know how to do this, check out this article on how to add SPF records.

NOTE: In the DNS settings, you’ll see a field called TTL (Time To Live). The default value is usually 1 hour. If you can change this record, we recommend changing it to 1 day or 86400 seconds. This will allow the server to cache this information for a full day.

Étape n° 5 : Validation de vos enregistrements SPF

Si vous avez ajouté l'enregistrement SPF, vous devez alors valider que les modifications ont été mises à jour. Il peut falloir jusqu'à 48 heures pour que les modifications se reflètent. Par conséquent, il est judicieux de valider les résultats avant de passer à l'étape suivante.

Click on this link and head to the section that says SMTP.com SPF Record Domain Check.

In the Domain field, submit your website’s URL and click on Validate:

Valider l'enregistrement SPF

If you followed every step, you should see this Pass message:

Message de réussite de l'enregistrement SPF

Et voilà !

Étape n° 6 : Envoi d'un e-mail de test

You’re done configuring WP Mail SMTP. It’s time to check if everything’s working properly.

Go to WP Mail SMTP in your WordPress dashboard and click on the Email Test tab:

Create Test Email

Entrez une adresse e-mail à laquelle vous avez accès et envoyez un e-mail de test. Si tout s'est bien passé, vous devriez voir ce message de succès :

Envoyer un e-mail de test

Now, check your inbox and confirm that you received the email in your Primary inbox. We’re very confident that you’ll find it there.

Finally, all you have to do is verify that the email went through your SMTP.com account. Click on this link to go to the Deliverability Settings page. If you see the ‘Pass’ notification like this one, you did a great job:

Vérifier les paramètres de délivrabilité

Si vous ne voyez pas « Réussi » dans le champ Statut, alors vous avez commis une erreur quelque part. Revoyez simplement les étapes 1 à 4 et assurez-vous de n'avoir rien manqué.

Conclusion

C'est tout pour cette fois, les amis !

If you’re not happy to see your marketing efforts go down the drain, then it’s time to install the WP Mail SMTP plugin.

Once your WordPress email deliverability issues are fixed, you can go back to increasing your traffic, engagement, and sales in peace. Speaking of which, have you tried using push notifications yet?

Push notifications are a great way to increase traffic, engagement, and sales for any business. And if you’re starting out with push notifications, we recommend using PushEngage. PushEngage is the #1 push notification software in the market.

Et le meilleur, c'est que PushEngage permet aux petites entreprises de rivaliser avec les grandes marques. Ainsi, il convient à chaque étape de croissance, que vous cherchiez à démarrer, développer ou faire évoluer votre entreprise.

Si vous débutez avec les notifications push, vous devriez également consulter certains de ces articles :

Et si ce n'est pas déjà fait, commencez dès aujourd'hui avec PushEngage pour passer au niveau supérieur !

Ajouter un commentaire

Nous sommes heureux que vous ayez choisi de laisser un commentaire. N'oubliez pas que tous les commentaires sont modérés conformément à notre politique de confidentialité, et tous les liens sont nofollow. N'utilisez PAS de mots-clés dans le champ du nom. Ayons une conversation personnelle et significative.

Engagez et retenez les visiteurs après qu'ils aient quitté votre site Web

Augmentez la valeur de chaque visite web avec des notifications push difficiles à ignorer.

  • Plan gratuit à vie
  • Configuration facile
  • Support 5 étoiles