One of the common problems that WordPress users often encounter is the email failure error. Notification emails from websites such as order placement, password recovery, or emails from plugins like WooCommerce may not reach the recipient’s inbox. In this article, we will show you how to quickly and effectively fix the email not sending error on WordPress.

Table of Contents

    Step 1: Check WordPress Default Email

    Before performing more complicated troubleshooting steps, check to see if your emails are being sent through WordPress’s default system. WordPress uses functions wp_mail() to send email, but sometimes your hosting does not support sending email via PHP mail() or the email is considered spam.

    Check Default Email

    To check if emails can be sent through the default WordPress system, you can try the following steps:

    • Reset user password to see if password recovery email is sent.
    • If the email is not being sent, it is likely due to a problem with the PHP mail() function or the configuration of the email server.

    Step 2: Install SMTP Plugin To Send Emails

    If your server does not support sending emails via PHP mail(), you can use SMTP (Simple Mail Transfer Protocol) instead. SMTP keeps your emails sent through a dedicated email server and reduces the chance of being marked as spam.

    Install WP Mail SMTP Plugin

    To install the WP Mail SMTP plugin, follow these steps:

    • Go to WordPress dashboard, go to Plugins -> Add New.
    • Search WP Mail SMTP and click Install Now (Install now).
    • Once installed, click Activate (Activate).
    Instructions for Fixing Unable to Send Email Error on WordPress
    WP Mail SMTP plugin interface on WordPress.

    Configuring WP Mail SMTP

    After installing the plugin, you need to configure it to send emails via SMTP:

    • Go to WP Mail SMTP in the admin menu.
    • Enter the outgoing email address (for example, [email protected]).
    • Select your email service provider (e.g. Gmail, SendGrid, Mailgun) or enter your SMTP server information.
    • Enter information such as the SMTP server name, port, and encryption method (SSL or TLS).
    • Enter your username and email password.
    • Click Save settings.

    After configuration, you can send a test email to check if the error has been resolved or not.

    Step 3: Check DNS and SPF Configuration

    Sometimes the error of not sending email can be due to the domain’s DNS configuration or SPF (Sender Policy Framework) record. SPF records help validate that emails are sent from an authorized server address, preventing your emails from being marked as spam.

    Check SPF Records

    To test and configure SPF records, you need:

    • Access your domain’s DNS control panel.
    • Add a TXT record with SPF content, for example: v=spf1 include:_spf.google.com ~all (if using Google Workspace).
    • Save your changes and wait for the record to update.

    Check DKIM and DMARC

    In addition to SPF records, you should also check and configure DKIM (DomainKeys Identified Mail) and DMARC (Domain-based Message Authentication, Reporting & Conformance) records to enhance email security and authentication.

    Step 4: Check Spam and Email Filter

    If your email does not reach the recipient’s inbox, it may have been moved to the spam folder. Ask the recipient to check their spam folder and mark your email as “Not spam” to avoid this problem in the future.

    Additionally, if your emails contain a lot of links, images, or promotional content, they may be marked as spam by email filters. Try to keep the email content short, don’t use too many images and links.

    Tips to Fix Email Not Sending Error

    To avoid and fix the email not sending error on WordPress, you can follow these tips:

    • Use a dedicated email service: Use email services like SendGrid, Mailgun, or Gmail to ensure the stability and security of your outgoing emails.
    • Update plugins regularly: Make sure you always use the latest version of the WP Mail SMTP plugin or email-related plugins.
    • Check DNS configuration: Make sure that SPF, DKIM, and DMARC records are configured correctly so your emails don’t get marked as spam.

    Fix WordPress email errors

    Fixing undeliverable emails in WordPress can be a complicated task, but with the steps in this article, you can quickly fix the problem and ensure that your emails are always delivered properly. effective. Let’s start with configuring SMTP and checking DNS records to improve your website’s email deliverability. Wish you success!

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Dark mode