Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
March 28, 2023 09:27 pm

How to Fix a WordPress Not Sending Email Issue


WordPress not sending emails correctly, or at all, is an issue that a lot of WordPress website owners have experienced. Failure to resolve the issue on time can lead to unhappy customers, loss of potential customers, and as a result, loss of revenue.


In this article, I’m going to show you how to fix the WordPress not showing email issue plus I’ll share with you some tips on how to fix it with the most used contact form plugin. Whether you’re using a regular WordPress site or a WooCommerce store, we’ll show you how to get emails up and running again.


Why WordPress isn’t Sending Email


If you’re having problems with WordPress not sending emails, it’s most likely due to one of these reasons:



  1. emails are sent but they go to the spam folder

  2. your server isn’t configured correctly

  3. your contact form plugin is sending "spoof" emails


In this article, we’ll address how to solve all three of these problems.


Email delivery issues are typically not due to a problem with the server, but rather because either email is not set up correctly in the WordPress installation or there is an incompatibility.


Most email clients like Gmail have ways of determining whether an email is a spam or not. Emails coming from WordPress commonly get flagged as spam and don’t actually end up reaching the recipient's inbox.


Let’s see some reasons why your emails might be marked as spam.


Reasons Why WordPress Emails Go Into Spam


1. Your Email Address is Blacklisted


If the sender's domain or IP address has a poor reputation due to being associated with other spammy emails in the past, this can cause emails sent from WordPress to go to spam.


To address this, you’ll need to ensure that your SMTP provider has a good reputation before using their services. Furthermore, you can ask your customers to whitelist your emails by adding your email address to their contacts.


2. Your Email Address Looks Unprofessional


Certain email addresses are more prone to getting marked as spam than others. Examples are info@, contact@, sales@, or something similar.


Check the email address you’re sending emails from. This is typically the admin email address, but if it’s any of the spam-prone emails above, try changing the email address to something more professional-looking.


Don’t forget to divert any emails sent to that address to your normal address so you don’t miss any replies. You can do this by creating an alias for your email address.


3. Set up Email Authentication


Lack of proper email authentication is another reason your WordPress emails might be going to spam. To solve this, you simply need to make sure your email address has been confirmed before sending emails from it.


The following guide shows you how to set up an SMTP in WordPress, and you’ll learn how to properly authenticate your email too.


How to Set Up SMTP in WordPress to Send Email


SMTP stands for Simple Mail Transfer Protocol and this will help us with our email deliverability to make sure that our emails end up in the recipient's inbox.


To solve the issue of WordPress not being able to send out emails, you need to install and configure an SMTP plugin in your WordPress website.


Create an Email Account


Before setting up the SMPT plugin in WordPress, you’re required to set up an email account in your hosting account and retrieve the email configuration setting, which includes the email address, name, SMTP host, and port number.


The process for setting up an email account is roughly the same regardless of your web host:



  1. sign into your hosting account dashboard

  2. find the email setting for the domain you’re working with

  3. look for the option for creating an email account

  4. create a new account


    1. use a professional name, e.g. [email protected]

    2. set your password

    3. fill in any other required information






You can find detailed setup instructions for your host by searching for "How to set up an email account in [your host name]".




Here’s the interface for setting up an email account on SiteGround:


SiteGround email accountSiteGround email accountSiteGround email account
SiteGround email account


When you finish, ensure that you take note of the email configuration setting because you’ll use it later when configuring SMTP in your WordPress site.


Install and Setup the SMTP Plugin


Let’s go over how to add SMTP to WordPress.


First, log into your WordPress dashboard. In the sidebar menu, go to Plugins > Add New and Use the search box to search for FluentSMTP.


Click Install Now, then click Activate.


Install pluginInstall pluginInstall plugin
Install plugin


Though there are many great SMTP plugins for WordPress, I choose FluentSMTP for its wider support for different WordPress versions and ability to connect with a wide variety of SMTP including Google, MailGun, and SendGrid.


Once the plugin is activated, we need to configure an email service provider connection. Click on Settings underneath the plugin name to open the settings page.


FluentSMTP gives you the option to choose from a variety of mail service providers.


email service providersemail service providersemail service providers
email service providers


Select your email service provider. In this case, we’ll go with the Other SMTP option because we’ll be working with the email we created on our web host.


Next, you’ll have to configure your sender settings with your from email, from name, SMTP host, and port (get those details from your email account under the mail configuration settings):


Sender settingsSender settingsSender settings
Sender settings


Change the encryption to SSL, leave Use Auto TLS and Authentication checked. Finally, click Save Connected Settings.


Now our SMTP for that email address has now been set up.


Sent test emailSent test emailSent test email
Sent test email


The awesome thing about FluentSMTP is that it keeps logs of all outgoing and incoming emails so you can know when an email is sent successfully or when it fails to send.


Next, make sure that emails are now working. Most SMPT plugins allow you to send a test email right from the plugin’s interface in WordPress. All you have to do is provide the recipient email, typically your own email address:


Sent test emailSent test emailSent test email
Sent test email


Now click the Send Test Email button to send the test email. You should get it in your inbox if all the settings are correct.


sent emailssent emailssent emails
sent emails


Automatically your contact form will send messages to this email address, and you can rest assured that they’ll land in the inbox and not the spam folder.


How to Configure Your Forms Plugin to Send Email Correctly


If you’re still having problems with entries to forms not sending despite properly configuring your server to send emails, then your form most likely needs some tweaks to its settings.


For this demonstration, we’ll use Contact Form 7, one of the oldest and most popular free WordPress forms plugins. We’ll fix this issue by changing the address are being sent from.


In your WordPress admin, go to Contact > Contact Forms.


contact formcontact formcontact form
contact form


Select the form you’ve created, then open the Mail tab.


edit contact formedit contact formedit contact form
edit contact form


Ensure that the From field uses the admin email address of your site, not the email address input in the form. It’s okay to use that in the Reply to field but not the From field.


Try not to use the same email addresses for the From and To fields. Use different addresses instead.


Save your changes and test things by completing the form yourself.


Conclusion


Troubleshooting WordPress not sending emails can be a difficult and frustrating process. However, by following the steps outlined in this article, you should be able to identify and resolve the issue quickly and easily. If the issue persists, it may be necessary to contact your web hosting provider or WordPress support for further assistance.



Original Link: https://code.tutsplus.com/articles/how-to-fix-the-wordpress-not-sending-email-issue--cms-93895

Share this article:    Share on Facebook
View Full Article

TutsPlus - Code

Tuts+ is a site aimed at web developers and designers offering tutorials and articles on technologies, skills and techniques to improve how you design and build websites.

More About this Source Visit TutsPlus - Code