WooCommerce

WooCommerce emails that arrive

Order emails are the ones that matter most in a store and the ones that get lost most often. Here is why it happens, how to send them with Hermaily (with its plugin or with your SMTP plugin) and which plan you need for your orders.

  • HTTPS plugin (port 443)
  • SMTP smtp.hermaily.com:587
  • 4 emails per order, on average

Why your store's emails do not arrive

WooCommerce sends its emails with wp_mail(), the WordPress function that, unless told otherwise, uses the server's own PHP mail(). That is where the trouble starts:

  • The host does not send, or sends very little. Many shared hosts disable mail() or cap it at a few emails an hour, so nobody sends spam from their machines.
  • It goes out unsigned. The email leaves from the host's IP, shared with thousands of sites, without your domain's DKIM and hardly ever aligned with your SPF and DMARC. Gmail and Yahoo require senders to authenticate, and what is not authenticated ends up in spam or rejected.
  • SMTP ports are closed. If you install an SMTP plugin to use a sending service, many hosts block outgoing ports 587 and 465: the test hangs and nothing goes out.
  • You do not know what happened. wp_mail() only tells you whether PHP accepted the message, not whether it arrived. You find out when a customer writes asking about their order.

The fix is for the store not to send on its own, but through a sending service with your domain verified. With Hermaily there are two ways: the plugin, which sends over HTTPS, or the SMTP plugin you already use.

With the Hermaily plugin (recommended)

The Hermaily plugin for WordPress (free, GPL, soon in the WordPress.org directory) replaces wp_mail()'s sending with the Hermaily API over HTTPS, on port 443, which no host closes. It covers every WooCommerce email and any other plugin that uses wp_mail().

  1. In the Hermaily dashboard, verify your store's domain (the assistant gives you the DKIM, SPF and DMARC records) and create an API key for that domain, one per site.
  2. Download the plugin from the latest release and upload it in Plugins → Add New → Upload Plugin.
  3. In Settings → Hermaily, paste the key (or define it in wp-config.php with define( 'HERMAILY_API_KEY', 'hm_…' ); to keep it out of the database).
  4. Set an address on your verified domain as the default sender and, if you like, force it: the original sender becomes the reply-to address.
  5. Send the test email from the same page. The log tab shows each message with its real status (delivered, bounced…), without storing the content.

With your SMTP plugin

If you already use WP Mail SMTP or Gravity SMTP, you can keep it and change only the service that sends. Use its generic SMTP option (“Other SMTP” in WP Mail SMTP, “Custom SMTP” in Gravity SMTP), not another provider's integration, which points to that provider's servers:

SMTP
Host       smtp.hermaily.com
Port       587 (STARTTLS) or 465 (TLS)
Username   apikey
Password   your API key (hm_…)

Tick the option to force the sender, with an address on your verified domain. If the test hangs, your host blocks outgoing SMTP: try 465 or switch to the Hermaily plugin, which does not need it. Each plugin's steps, one by one, are in the WordPress documentation.

What emails a store sends

The ones WooCommerce ships with (in WooCommerce → Settings → Emails), not counting other plugins':

EmailToWhen
New orderThe storeEvery order that comes in.
Order on-holdCustomerPayments confirmed later, such as bank transfers.
Processing orderCustomerOrder paid, being prepared.
Completed orderCustomerOrder shipped or delivered.
Refunded orderCustomerFull or partial refunds.
Cancelled or failed orderThe store (and, depending on the version, the customer)Orders that do not go through.
Customer noteCustomerWhen you add a note to the order for the customer.
Invoice or order detailsCustomerWhen you send it from the order.
New account and password resetCustomerStore signups and forgotten passwords.

They are all transactional: the customer is waiting for them, and without them come the questions, the calls and the “lost” orders. Newsletters and campaigns go separately, through the broadcast stream with one-click unsubscribe.

How many emails and which plan you need

A normal order generates three emails (new order for the store, processing and completed for the customer). With on-hold payments, notes, refunds, new accounts and forgotten passwords, a prudent estimate is 4 emails per order. If you send newsletters, add them separately.

Emails a month and Hermaily plan by store orders, at 4 emails per order
Orders a monthEmails a monthPlanCost a month
50200Free$0 (€0)
100400Micro$1.20 (€1)
2501,000Micro$1.20 (€1)
5002,000Micro$2.40 (€2)
1,0004,000Mini$4.20 (€3.60)
2,50010,000Starter$6 (€5)
5,00020,000Starter$12 (€10)
10,00040,000Growth$19.50 (€17)
25,000100,000Business$33.50 (€29)

Before tax. The cheapest plan for that volume, counting extra emails. The Free plan uses the capacity paid plans leave free and its sends may be delayed at busy times: for a store, a paid plan from the start is better. Other volumes in Pricing.

Frequently asked questions

Why does WooCommerce not send order emails?

Almost always because wp_mail() uses the host's PHP mail(), which many hosts disable or cap, or because emails go out without your domain's DKIM and end up in spam. Sending through a service with your domain verified fixes it.

Do I need an SMTP plugin?

No. The Hermaily plugin sends through the API over HTTPS, so it works even if your host blocks the SMTP ports. If you already have WP Mail SMTP or Gravity SMTP, you can keep it too.

How many emails does a store send per order?

About three for a normal order (new order for the store, processing and completed for the customer). Counting on-hold payments, notes, refunds and new accounts, plan on 4 per order.

Which plan do I need for my store?

It depends on your orders per month: the table on this page gives you the plan and the cost at 4 emails per order. For a store we recommend a paid plan from the start, because the Free plan may delay sends at busy times.

Can I also send newsletters to my customers?

Yes, from the Mini plan, to consent-based lists. Broadcasts go through the broadcast stream, with one-click unsubscribe, and unsubscribes, bounces and complaints are suppressed automatically.

Do I need to verify my store's domain?

Yes. Sending only works from verified domains: the dashboard assistant gives you the DKIM, SPF and DMARC records and checks they are published correctly.

Make sure no order goes without its email

Create the account, verify your store's domain and install the plugin. It is done in a morning.

Create a free account