Skip to content
ThemesIonic — home
WooCommerce

WooCommerce Emails Not Sending: Find Which Layer Failed

Read the order notes first. WooCommerce logs every send attempt, so you can tell whether it never tried, tried and failed, or handed the email off and the inbox rejected it.

Updated 4 min read intermediate

Quick answer: open the order and read its notes. WooCommerce adds a note for every send attempt: Email "New order" sent. means the email left WordPress, Email "New order" failed to send: … means the mail transport rejected it, and no note at all means WooCommerce never tried.

Read the evidence first

Order notes. For each email tied to an order, WooCommerce writes a private note when the attempt succeeds or fails. A failure from a server with no working mail() looks like this:

Email “New order” failed to send: Could not instantiate mail function..

The text after the colon is the PHPMailer error, captured from the wp_mail_failed action. The double full stop is normal: WooCommerce adds one after PHPMailer's.

WooCommerce Order notes panel with the note: Email “New order” failed to send: Could not instantiate mail function.
Reproduced on WooCommerce 11.3.1 with no working mail transport on the server: WooCommerce tried, PHP mail failed, and the order records it.

The email log. Go to WooCommerce → Status → Logs and filter by the source transactional-emails. This log also records the cases that never produce an order note:

Real lines from WooCommerce → Status → Logs, source transactional-emails, on a WooCommerce 11.3.1 test store whose server had no working mail transport (context shortened):

WARNING Email "new_order" for order #49 failed to send: Could not instantiate mail function. CONTEXT: {"email_type":"new_order","status":"failed","recipient":"admin",…}
NOTICE  Email "customer_processing_order" for order #49 not sent: no_recipient CONTEXT: {"email_type":"customer_processing_order","status":"skipped","recipient":"guest",…}
WARNING Email "customer_new_account" for user #3 failed to send: Could not instantiate mail function. CONTEXT: {…}

The second line is the easy one to miss: the order had no billing email, so WooCommerce never tried to send the customer copy.

Log line Meaning
Email "new_order" for order #123 sent wp_mail() returned true
Email "new_order" for order #123 failed to send: … wp_mail() returned false, with the reason
Email "customer_completed_order" for order #123 not sent: email type is disabled The email is switched off
Email "customer_processing_order" for order #123 not sent: no_recipient No address to send to

If an order has neither a note nor a log line for the email you expected, the trigger never fired.

Symptom, layer, fix

Symptom Layer How to confirm Fix
No note, log says email type is disabled WooCommerce Settings → Emails list Turn the email back on
No note, log says no_recipient WooCommerce Recipient(s) column, or the order's billing email Set a recipient
Nothing at all Status trigger Status history in the order notes Move the order through a status change that triggers the email
Nothing yet, deferred emails on Queue Status → Scheduled Actions, group woocommerce-emails Get Action Scheduler running
failed to send: … WordPress mail transport Error text in the note Configure SMTP or an API sending service
sent, but the email never arrives Delivery Spam folder, message headers Fix the From address and authenticate the domain

Layer 1: WooCommerce never tried

Disabled email. WooCommerce → Settings → Emails lists every notification with the columns Email, Content type and Recipient(s), plus a status marker: enabled, disabled, or Manual for emails that are only sent by hand. Open an email and check Enable this email notification.

No recipient. Admin emails go to the address in Recipient(s). A colleague who left or a typo in that field fails silently. Customer emails go to the order's billing email, so an order created in the admin without one is skipped.

Wrong status change. Emails fire on status transitions, not on the order existing:

Email Fires on
New order (admin) Pending, Failed or Cancelled → Processing, Completed or On hold
Processing order Pending, Failed, Cancelled or On hold → Processing
Order on-hold Pending, Failed or Cancelled → On hold
Completed order Any status → Completed
Cancelled order (admin) Pending, Processing or On hold → Cancelled
Failed order (admin) Pending or On hold → Failed
Refunded order Full or partial refund

An order stuck in Pending payment triggers nothing: look at the payment gateway, not email. Processing → Completed sends only the Completed email. The admin New order email is sent once per order: WooCommerce stores a flag after a successful send and skips later transitions. woocommerce_order_status_changed explains how these transitions fire.

Deferred emails. If Deferred emails is enabled under Settings → Advanced → Features, or a plugin returns true from woocommerce_defer_transactional_emails, nothing is sent during checkout. Each email becomes an Action Scheduler action (woocommerce_send_queued_transactional_email), and the order note appears only when it runs. Pending actions piling up mean the queue is stuck: see past-due actions.

Layer 2: WordPress tried and the transport failed

WooCommerce hands every email to wp_mail(), which uses PHPMailer. By default PHPMailer calls PHP mail(). The error in the note tells you what broke:

  • Could not instantiate mail function.: mail() is disabled or has no mail program behind it. Common on containers, local setups and hosts that block it.
  • SMTP connect() failed. or SMTP Error: Could not authenticate.: an SMTP plugin is configured with the wrong host, port, encryption or password.

The fix is outside WooCommerce: authenticated SMTP or an API sending service, set up as in contact form not sending email. Confirm it with a password reset email before resending orders.

The reason capture is best-effort: another plugin's failed wp_mail() call just before can be reported as the order email's reason. If the text looks unrelated, log every failure yourself:

<?php
// wp-content/mu-plugins/mail-debug.php
add_action( 'wp_mail_failed', function ( WP_Error $error ) {
    error_log( 'wp_mail failed: ' . $error->get_error_message() );
} );

Layer 3: sent, but not received

A sent note only means the transport accepted the message. Gmail or Outlook can still drop it or send it to spam.

  • WooCommerce → Settings → Emails has its own "From" name and "From" address, which override the WordPress defaults for store emails. A From address on a free mailbox domain fails DMARC when your server sends it. Use an address on your own domain, and check that your SMTP plugin is not forcing a different one.
  • Publish SPF and DKIM for whatever actually sends the mail. After a host move, records and credentials often stay behind, as migrating to a new host warns.

Resending

The order actions menu has two email items. Resend new order notification re-sends the admin email despite the once-per-order flag. Send order details to customer sends the Order details email and always adds Order details manually sent to customer., even when the send fails, so read the note after it. To re-send Completed, change the status away and back. If what is missing is a PDF invoice, that is a different gap: see WooCommerce invoices.

Common mistakes

  • Installing an SMTP plugin when the log says email type is disabled. No transport fixes an email WooCommerce chose not to send.
  • Treating sent as delivered. It only means handed off.
  • Turning on deferred emails without a working cron. Emails then wait for the next visitor or never go out.

Verify

  1. Place a test order with a payment method that completes.
  2. The order notes show sent for New order and Processing order.
  3. The Processing email arrives at an external address, outside the spam folder, with spf=pass and dkim=pass in its headers.
  4. Mark the order Completed and confirm that note and email too.

Frequently asked

Check the order notes. If both emails show as sent, the server handed them off and the customer's provider filtered or rejected them, which points at the From address, SPF and DKIM. If only the admin one appears, the Processing order email is probably disabled or the order skipped the status change that triggers it.
WordPress tried to send through PHP mail() and the server refused. That function is disabled or has no mail program behind it. WooCommerce settings cannot fix it: configure authenticated SMTP or an email sending service, then resend the email from the order.
Partly. The order's actions menu has Resend new order notification for the admin and Send order details to customer, which sends the Order details email with a payment link if the order is unpaid. It is not the Processing or Completed email. To trigger Completed again, move the order to another status and back to Completed.

Related guides