Solution:2
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’ll 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. If you’re setting this up on your business website, you might want to enter your business email address here.
This setting works with most mailers, although there are some exceptions. If you use Zoho Mail SMTP, your emails will only be sent from your Zoho Mail address, so this setting will be grayed out in the plugin.
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 strongly recommend that you also check the box labeled 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 WordPress 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 personalization.
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.
If you’re having problems with WooCommerce not sending email, you might want to use a different mailer that’s more suited to transactional emails. Feel free to check out our tutorials on some of the other mailers available like Mailgun, Amazon SES, SendGrid, Gmail, or Microsoft.
The Gmail option lets you send email from any Gmail or G-Suite alias. You can also use multiple aliases to send email. Check out the guide on how to send WordPress emails from Gmail aliases to set this up.
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. john@gmail.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 Other SMTP mailer. If you use SMTP, though, don’t forget to enable less secure apps in the next step.
Step 6: Enable Less Secure Apps
In order 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.
Step 7: Send a Test Email
Once your SMTP settings have been added to WP Mail SMTP, it’s important 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.