It's happened to you too. After several days (or weeks) with your online site, you have noticed that WordPress does not send emails even though your email address is well configured. Don't worry, it has a solution!
Content of this Article
¿Por qué WordPress no envía correos?
In the best case, you'll get an error like this "email could not be sent. possible reason: your hosting may have disabled the mail() function. ”
On other occasions, you will not directly receive any type of notice, but neither will you receive any email from the forms on your website, although the error is the same.
This error is quite common and it's not really about you setting up something wrong in WordPress, or your mailbox, but a problem with your hosting provider.
In general, when you choose hosting services from a cheap provider, you get in return just that, cheap services or services that are not included in your pack.
WordPress sends messages thanks to a certain PHP function. Some shared hosting providers don't have that feature configured correctly on their servers or have turned it off to save resources.
That's why I always recommend that you hire a professional hosting service especially for WordPress.
If WordPress doesn't send emails and you have an online business on your site, you could lose a lot of money, as the orders won't reach your email account.
In others, you will lose readers, followers or potential clients, because you will not receive any kind of contact form.
Check if WordPress sends emails
The first step would be to check whether or not your WordPress installation is actually sending emails when it should (requests, comments pending moderation, contact forms, etc).
To do this, I recommend that you install and run this pluginPlugin Add-on that is added to the WordPress installation to give it more functions. There is an official repository with thousands of plug-ins available for installation.
How do I get WordPress to send emails?
I'm going to give you a temporary solution for WordPress to send messages to your mailbox, until you can hire a hosting that has that service already included.
To make it work, you're gonna need two things basically:
- An email account, such as email@example.com
- A plugin from the WordPress repository.
Create an email account on your hosting
In most hosting packages, a professional email account service is included, so you can easily create one or more accounts through the Control Panel.
To do this, go to the Mail section of your Control Panel and there look for the option to create a new email account.
Once inside, you will have to click on Create account with the data you choose:
- User name
- Email address
Whether you have just created it or you already had it created, it will appear in a list, within the option you selected in the previous step "Email accounts".
Choose from this list the email account you want to use for WordPress to send emails, and click on the "Connect devices" button to the right.
And now you will see that you have different options, among them, you will find a so called "Manual configuration" and there you will see some configuration parameters of your new email account, very similar to this image:
Save these data well, because you'll need them to configure the plugin that I'll explain below.
Install WP Mail SMTP by WPForms plugin
Este plugin (que puedes encontrar también en versión reducida en el repositorio de WordPress) cuenta con más de 1 millón de instalaciones activas, va a ser el encargado de “reconfigurar” la función de WordPress para que los emails se envíen a través del SMTP de tu servidor.
To do this, simply download it from the WordPress repository, install it in your WordPress and activate it; a new option will be created in the WordPress administration menu called WP Mail SMTP.
Inside it, you must go to Adjustments
Here you can configure the email address and name of the sender, although the most important part is to choose the email service through which you want these to be sent.
In another article I'll explain how to configure your Google Account (and other services) to be able to send emails with WordPress, but I warn you that it's laborious because you must create a web application, an API key, and so on.
Therefore, what I recommend is that you choose "Other SMTP" and here you enter the details of your professional email account (type firstname.lastname@example.org) that we created at the beginning of this tutorial:
- User name
- Outgoing mail server
- SMTP port
It is convenient that after saving the changes you do a test from the plugin itself to see if it works correctly. In this case you just need to enter an email address (e.g. your GMail email) and press the "Test" button.
If the previous solution has not worked for you and WordPress does not send emails, or if you have managed to send them but want to have absolute control over the emails sent, you have other possibilities with the PRO version of WP Mail SMTP, for example:
- Use your Outlook.com account to send emails.
- Send emails using your Office 365 account
- Choose which email notifications your WordPress site sends
- Automatically track every email sent from your WordPress
- Integration with Amazon SES
And if you prefer to stay calm and have the WP Mail SMTP team do all the configuration and leave your WordPress ready to send emails, with the corresponding checks, choose the Elite version.
In any case, whether you have opted for the Pro version or the Elite version, you can get today a 20% discount including the SAVE20 coupon before making the payment.
If you are a user of the free version and want to become a PRO, you will see that 20% discount applied directly to your cart, by clicking from the plugin link.
When you do a new installation of WordPress it's always a good idea to try sending emails through, for example, a contact form.
In this way you will ensure that everything works correctly and you will not lose contact with your readers, users or customers.
If after several tests you detect that WordPress does not send emails, follow all the steps in this article to make everything work properly.
Did you manage to solve the problem and get WordPress to send emails again? Leave your comment and share your experience with other users!