Are you not receiving email notifications from your WordPress contact forms? Unfortunately, the WordPress contact form not sending email issue is ubiquitous.
However, you can quickly fix this issue and start receiving those emails by setting up the Simple Mail Transfer Protocol (SMTP) on your website. This tutorial shows you exactly how to fix the WordPress contact form sending email issue.
Why You are Not Receiving Notifications
Are you frustrated because your forms are not sending emails and they keep disappearing? It is a big issue in the WordPress community and can hurt your lead generation efforts.
There can be many reasons for the lack of email notifications. Here is a couple of the most common:
- Your WordPress hosting server is not configured to use the PHP mail function that WordPress uses to send emails that are generated by a contact form plugin like WPForms.
- Your email server is blocking it as spam. To reduce spam emails, your email provider often checks whether your email is originating from the location it claims to be originating from. For example, if your email server is yahoo.com, chances are your form notification will not even make into the spam folder since they are sent out from a completely different server.
This is why we recommend using SMTP to send emails from WordPress instead of using the default PHP mail function. SMTP (Simple Mail Transfer Protocol) is an industry-standard way to send emails that use proper authentication method to ensure email deliverability.
In this post, we will be using the free WP Mail SMTP plugin to send form notifications using a simple setup with any email account.
Note: This tutorial method is less secure because it stores your email login and password in your WordPress dashboard. Other WordPress administrators have access to this. For a more secure option, we recommend using one of WP Mail SMTP’s more secure options.
How to Fix The WordPress Contact Form Not Sending Email Issue
Follow these steps to fix the WordPress contact form, not sending email issue.
Step 1: Install the WP Mail SMTP Plugin
The first thing you need to do is to install and activate the WP Mail SMTP plugin. You can see this guide on how to install a WordPress plugin for step-by-step instructions.
Step 2: Configure Your ‘From’ Email
After installing and activating this plugin, go to WP Mail SMTP » Settings to configure the mail options.
Here, you will first be asked to enter your From Email. This is the email address that all of your site’s emails (and form’s email notifications) will be sent from.
Note: Make sure to enter the same email address you will be using to send SMTP emails (your Yahoo, Gmail, or Live email address).
Additionally, in WPForms, the same email must be used in the From Email setting for your form notifications.
We recommend that you also check the box labelled Force From Email. Since the From Emails from anything on your site that sends email must match this email address in order for SMTP to work, this will save you the trouble of editing the email settings throughout your site (in all form emails, etc.).
Step 3: Configure Your From Name
Next, you can change your From Name. By default, this will be set to the site name. However, you can change this to anything you’d like, like your actual name for personalisation.
You can also choose to Force From Name to apply this setting to emails site-wide.
We also recommend checking the optional Return Path checkbox to Set the return-path to match the From Email. With this enabled, you’ll be emailed at that address if any messages bounce as a result of issues with the recipient’s email.
Step 4: Select Your Mailer
Next, in the Mailer field, you’ll need to select the Other SMTP option.
Step 5: Configure Other SMTP Settings
After selecting Other SMTP as your mailer, a new section will appear called Other SMTP. Here, you’ll need to enter additional details to connect your site to your email provider.
Each email provider requires slightly different SMTP configurations. In this tutorial, we’ll take a look at how to configure options for Gmail, Yahoo, and Live/Hotmail.
When entering your username and password for any email option, please note that this information is stored in plain text. For a more secure approach, check below the Password field for instructions on adding the password to your site’s
wp-config.php file instead.
For more details, check out WPBeginner’s tutorial for details on how to edit wp-config.
Here are the SMTP settings you’ll need for the most popular email providers:
Gmail / G Suite SMTP Settings
If you want to send notifications using your Gmail or G Suite accounts, you can use the below SMTP options.
- Host: smtp.gmail.com
- Port: 587 (or 465 using SSL encryption)
- Username: Your Gmail account email address (e.g. email@example.com)
- Password: Your Gmail account password
- Encryption: TLS
Then, enter your Gmail username and password and save these settings.
Note: Please note that we recommend using the built-in Gmail integration instead of this less secure Another SMTP mailer. If you use SMTP, though, don’t forget to enable less secure apps in the next step.
Hotmail / Live SMTP Settings
If you want to send notifications using your Hotmail or Live email, you can use the below SMTP options.
- Host: smtp.live.com
- Port: 587
- Username: Your Hotmail account email (e.g. firstname.lastname@example.org)
- Password: Your Hotmail account password
- Encryption: TLS
Then, enter your Live or Hotmail username and password, and click Save Changes.
Yahoo Mail SMTP Settings
If you want to send notifications using your Yahoo email, you can use the below SMTP options.
- Host: smtp.mail.yahoo.com
- Port: 465
- Username: Your Yahoo Mail account email (e.g. email@example.com)
- Password: Your Yahoo Mail account password
- Encryption: SSL
Then, enter your Yahoo username and password and click Save Changes.
Note: Please note you will need to enable less secure apps, found in the next step.
AOL SMTP Settings
If you want to send notifications using your AOL email, you can use the below SMTP options.
- Host: smtp.aol.com
- Port: 587
- Username: Your AOL screen name (e.g. john)
- Password: Your AOL account password
- Encryption: TLS
Once these details are entered, be sure to click the Save Settings button.
Step 6: Enable Less Secure Apps
In order to for SMTP to be used on your WordPress site, you may need to enable less secure apps on your email account. Below, we’ll show you how to do this in:
How to Enable Less Secure Apps in Gmail
To enable less secure apps on Gmail, log in to your Gmail or G Suite account.
Then, go to less secure apps by clicking this link. Next to Access for less secure apps, select Turn on. (If you have Two Factor Authentication enabled, you will need to disable it before you can enable this option.)
Sometimes for security reasons, Gmail may automatically block the sign-in used by SMTP, even with less secure apps enabled. When this happens, your recovery email address will be sent an email with a sign-in attempt warning like this:
To remove this block, you’ll need to click the Review Your Devices Now button (or visit your account’s Recently Used Devices page) and follow the instructions to let Google know this was a legitimate login attempt.
How to Enable Less Secure Apps in Hotmail/Live
If you’re using Live or Hotmail email, you don’t have to enable less secure apps on your account to configuring SMTP on your site.
How to Enable Less Secure Apps in Yahoo
To enable less secure apps on Yahoo, log in to your Yahoo account.
Then, click here to go to account security settings. Now turn on “Allow apps that use less secure sign-in”. After turning it on, the button colour will be turned to green.
Once this information is complete, go ahead and save your settings.
Step 7: Send a Test Email
Once your SMTP settings have been added to WP Mail SMTP, it’s essential to send a test email to ensure that everything is working right.
To send a test email, click on the Email Test tab on WP Mail SMTP’s settings page.
On this tab, you can enter any email address that you have access to and click the Send Email button.
After sending the email, you should see a success message.
If you check the inbox for the email address you just entered, you should receive the email for this test. If you’re using Yahoo email, it may take about 5 – 10 minutes for it to arrive in your inbox.
Be sure to also test out your form emails by submitting a couple of test submissions after completing this setup. That way, you can check that emails deliver successfully.
And don’t forget to set the From Email in your form’s notification settings to the same email you set up this SMTP with.
That’s it! You’ve successfully configured SMTP on your WordPress site. You’ll now start getting notifications from your WordPress forms.