How to avoid WooCommerce emails going to spam (or not sending)

Short answer: to lower the chance of WooCommerce emails going to spam or going missing, check that the order is paid and the email is switched on, send from an address on your own domain through a real mail service, and publish SPF, DKIM and DMARC records for that domain.

Reviewed

Symptom: emails not sending or going to spam

A customer pays, but no order confirmation arrives. Or the email arrives, but in the spam folder. Password resets and new-order emails to you may be missing too.

Why it happens

There are four common causes, and they are quick to tell apart:

  1. The email was never meant to be sent. WooCommerce sends no order emails for an order that is still in “Pending payment”. An unpaid or abandoned payment leaves the order there. If you were paid but the order stays pending, the problem is the payment gateway, not email.
  2. The email is switched off, or is missing a recipient. Each WooCommerce email can be turned off, and the new-order email needs a recipient.
  3. The email leaves your site in a way receivers distrust. By default WordPress hands mail to your web server (plain “PHP mail”). Receivers often distrust it. WooCommerce’s own documentation says a dedicated mail service is more reliable than your server’s mail-sending function.
  4. Your domain does not prove it sent the email. Three DNS records (SPF, DKIM and DMARC; DKIM is a digital signature your mail service adds to each message, checked against a public key in your DNS; see how to add or fix an SPF record and how to set up DKIM) let a receiving server check that a message really comes from your domain. Without them, mail is more likely to be filtered as spam.

Fix: how to avoid spam and missing emails

Work through these in order and test after each step.

  1. Check the order status. Open the order. If it says “Pending payment”, no email is expected yet.
  2. Check the email settings. Go to WooCommerce, Settings, Emails. Open each email you expect and make sure Enable this email notification is ticked. For the new-order email, check that a recipient is filled in.
  3. Use a From address on your own domain. In the same settings, set the “From” address to something like shop@example.com, where example.com is your own domain. WooCommerce’s documentation advises matching the From address to your site’s domain, because a public mailbox address (for example a free webmail address) can send mail to spam or get it blocked.
  4. Send through a real mail service. Install an SMTP plugin or connect your hosting provider’s mail service, and set it up following that provider’s instructions. If you choose Google as the service, see Gmail redirect_uri_mismatch when the sign-in step fails.
  5. Publish SPF, DKIM and DMARC for the domain you send from. Your mail service shows the exact records to add. Then see SPF too many DNS lookups and DMARC for beginners.
  6. Read the WooCommerce email log. Go to WooCommerce, Status, Logs, and open the source named transactional-emails. WooCommerce marks each attempt as sent, failed (usually with a reason), disabled or skipped (a needed condition such as a recipient is missing). If nothing is logged, check that logging is on in the Logs settings. Password resets are not in this log. For those, check your mail service’s own logs or a mail logging plugin; the Email Log in Email Health Check & Log for WooCommerce lists the emails your site sends through WordPress’s standard mail function, including WordPress’s own mail.
  7. Rule out a conflict. Temporarily disable other plugins and switch to a default theme, as WooCommerce’s documentation suggests, then trigger the email again.

Check it worked

  • Place a test order (or trigger the email you are testing) and confirm it arrives in the inbox, not in spam.
  • Test with more than one provider: send to a Gmail address and to an Outlook or Yahoo address you control.
  • Open the message source and look at the Authentication-Results header. You want spf=pass, dkim=pass and dmarc=pass.

How the plugin helps

Email Health Check & Log for WooCommerce is a free plugin that checks most of the list above from one screen. Its Health Report shows Pass, Warning or Fail for how your site sends email, the sender address, SPF, DKIM and DMARC, turned-off WooCommerce emails, a missing new-order recipient, an invalid From address, and many orders stuck in “Pending payment” or “Failed”. It also keeps a log of the emails your site sends through WordPress’s standard mail function and has a Send Test Email form. It does not send your email for you, so you still need a mail service, and it cannot fix DNS records for you. For SPF and DKIM it shows setup guidance for the mail providers it recognizes, with a link to the provider’s own instructions, and for DMARC it shows a generic starter record (p=none) to copy. Get the plugin on WordPress.org.

Check your own domain

Type your domain into the free checker to see whether your SPF, DKIM and DMARC records are in place. Or install the free plugin, which checks the basics from inside your dashboard.