All posts

WooCommerce order emails not sending: causes and fixes

A customer pays, the order is there, and nobody gets an email. WooCommerce almost always did its part: it built the message and handed it to WordPress. Whether it arrives depends on how the server sends mail, and by default that is the weakest link in the store.

Free checkout scan

Enter your store address. A real browser adds a product to the cart and walks the checkout up to the payment step, like a customer, and shows you every step with a screenshot.

  • Free, no account
  • Stops before payment, no order
  • Nothing to install
· Updated · 3 min read
A weathered mailbox

Why emails do not arrive

Where it failsSignFix
Email disabled in WooCommerceNothing sent for that eventWooCommerce → Settings → Emails
Order never reached the statusOrder stuck in Pending paymentPayment confirmation; see pending payment
PHP mail() on shared hostingwp_mail returns true, nothing arrivesSend through SMTP or an email API
No SPF, DKIM or DMARCLands in spam or rejectedPublish DNS records for the sending domain
From address on another domainRejected by Gmail and OutlookSend from your own domain

Customer emails depend on order status: Processing order goes out when payment is confirmed, Completed order when you complete it. An order stuck in Pending payment sends no customer email at all.

Customers get nothing, but the admin does (or the reverse)

Admin and customer emails go to different mail providers. The admin address is often on the same domain as the server and is accepted locally; Gmail or Outlook check authentication and reject or spam the same message. The reverse usually means the admin recipient in WooCommerce → Settings → Emails → New order is wrong.

Test sending from the server

bash
# Does WordPress hand the message to the mailer?
wp eval 'var_dump( wp_mail( "you@example.com", "Test from the store", "Hello" ) );'

# Is the sending domain authenticated?
dig +short TXT example.com | grep -i spf
dig +short TXT _dmarc.example.com
true only means WordPress accepted the message, not that it was delivered. Check the inbox and the spam folder, then the mail log or your SMTP provider’s log.
Read the message headers

In Gmail, “Show original” on a test email shows SPF, DKIM and DMARC as PASS or FAIL. Anything but PASS on all three explains missing emails.

Making them reliable

  1. Send through SMTP or an API. A transactional email service with an SMTP plugin, instead of PHP mail().
  2. Authenticate the domain. SPF and DKIM records from the provider, and a DMARC record.
  3. Log every message. An email log plugin shows what was sent and the error when it fails.
  4. Watch the order side. If orders stop reaching Processing, emails stop too; that is a payment problem, not a mail one.

Checking it

Place a test order now and then and confirm the email arrives in a Gmail and an Outlook inbox. Related: Action Scheduler, where some email plugins queue messages, and WooCommerce checkout not working.

Check your own store now with the free WooCommerce checkout checker: it walks the checkout in a real browser, stops before payment, and shows the step where it breaks.

Find out your checkout broke before your customers do.

Real checkout checks for Magento and WooCommerce · free plan · no card requiredWooCommerce checkout monitoring →
FAQ

Common questions

Still have a question?More answers, and a way to reach us.Support →
01Why are WooCommerce order emails not being sent?

The email is disabled, the order never reached the status that triggers it, or the server’s mail is rejected or marked as spam because it uses PHP mail without SPF, DKIM and DMARC.

02How do I test WooCommerce emails?

Run wp_mail from WP-CLI to a Gmail address, check inbox and spam, and read the headers for SPF, DKIM and DMARC results.

03Why does the admin get the email but the customer does not?

Admin mail is often accepted locally, while Gmail or Outlook reject or spam unauthenticated mail. Fix sending and domain authentication.