Search
Close this search box.
Search
Close this search box.

How to fix E-Mail problems in WordPress and WooCommerce

Solution 1: Use SendGrid

Are your WooCommerce customers having problems receiving their email? They may be not getting the emails at all. Or you may be getting the emails with a small delay. You can fix this problem by using an SMTP server for sending your emails instead. This can be done via a transactional email sending service like SendGrid, Mandrill or MailGun. Transactional API based services are generally better for large stores to ensure enhanced deliverability.

Don’t forget that sendgrid has a limitation of 100 emails/day for free.

Let’s get started:

  1. Create your SendGrid account.
  2. After you have created and confirmed your SendGrid account, log in.
  3. Click Create a single sender and fill all fields (email, address, etc.).
  4. Verify your email.
  5. Go to Marketing > Sender and see that your sender is verified.
  6. Go to Settings > API Keys and press Create API Key.
  7. Name your key and give tick the Full Access radio buttons everywhere.
  8. Copy your API key, we will need it later to make the connection with WordPress.
  9. Now, go to your WordPress backend and install and activate the Post SMTP Mailer/Email Log plugin.
  10. Go to Settings > Post SMTP.
  11. Click Show All Settings.
  12. In Type select SendGrid API.
  13. Paste the key from step 5.
  14. Press the Message tab and fill in the email and name fields.
  15. Press Save Changes and you are go to go! From now on your WooCommerce and WordPress will use SendGrid to send emails, so sit back and enoy!

Correct your SPF record

Add the SendGrid include mechanism lookup into your existing SPF record.

For example, if your record looks like this:

v=spf1 a mx include:_spf.google.com include:spf.protection.outlook.com ~all

You would just need to add our lookup at the end of the string, before the ~all mechanism, like so:

v=spf1 a mx include:_spf.google.com include:spf.protection.outlook.com include:sendgrid.net ~all

Solution 2: Use Gmail

  1. Install WP Mail SMTP plugin.
  2. Go to Settings > WP Mail SMTP page to configure the plugin settings.
  3. In From Email enter your email (eg. info@mysite.com) and check Force.
  4. In From Name enter your name and check Force.
  5. In mailer select Other SMTP.
  6. Set SMTP Host to smtp.gmail.com.
  7. Select SSL.
  8. In SMTP Username enter your gmail.
  9. In STMP Password enter your gmail password.

Solution 3: Setting up Gmail using OAuth Protocol

  1. Visit the Google Cloud Platform website.
  2. Click Create project.
  3. Give it a memorable name, so that you can easily recognize it in the future (eg. My WP Mail SMTP) and click Create.
  4. Click on the ‘Enable APIs and Services’ button.
  5. Type Gmail in the search box to quickly find the Gmail API and click to select it.
  6. You will now see an overview of the API and what it can do. Simply click on the ‘Enable’ button to continue.
  7. Click on the ‘+ Create Credentials’ button.
  8. On the next screen, you can select ‘Gmail API’ from the dropdown menu for Which API are you using.
  9. After that, choose ‘User data’ for What data will you be accessing and then click the ‘Next’ button.
  10. Now, you’ll need to enter your App’s information. You can start by giving a name for your app, selecting the email address you provided, and adding an app logo if you want.
  11. On the next screen, you can configure the ‘Scopes’ for Gmail API. This is an optional step and you can skip this for now. Simply scroll down to the bottom of the page and click the ‘Save and Continue’ button.
  12. Next, go ahead and enter details for OAuth Client ID. Start by choosing ‘Web Application’ as the Application Type from the dropdown menu and then enter a name.
  13. Go to Authorized redirect URLs and click the ‘+ Add URL’ button under Authorized redirect URLs and enter https://connect.wpmailsmtp.com/google/ under the URLs field and click Create.
  14. Click Done.
  15. Click on the edit icon next to your credentials to continue.
  16. This will bring you to the edit credentials page where you will be able to see your client secret and client ID. You need to copy and paste the key into your plugin’s settings page.
  17. Install WP Mail SMTP plugin.
  18. Go to Settings > WP Mail SMTP page to configure the plugin settings.
  19. In From Email enter your email (eg. info@mysite.com) and check Force.
  20. In From Name enter your name and check Force.
  21. In mailer select Google / Gmail.
  22. Enter your client secret and client ID from step 16 and click save.
  23. The plugin will now store your settings and reload the page. After that, you need to scroll down to the bottom of the settings page and click on the ‘Allow plugin to send emails using your Google account’ button.