A customer of a home and living brand I work with placed an order late one night, paid, and then wrote in to ask where the confirmation was. Customer care checked. The order was there, the payment was there, the status was right. And next to it, in the shop’s mail log, the confirmation sat marked delivered.

It was not delivered. It was accepted. Those are different events, and almost every shop I look at treats them as the same one.

Four shops, identical records, one that lost mail

This brand runs four sibling shops on the same platform. Same stack, same mail settings, same DNS pattern: an SPF record pointing at the hosting provider, no DKIM, no DMARC. Three of them deliver order confirmations without complaint. The fourth loses them.

So the records were not the variable. If they were, all four would fail. The only thing that differed was the web host underneath.

I proved it the cheap way. I installed a mail plugin with logging on the problem shop, left it configured to use the server’s own PHP mail, and sent a test to a Gmail address I control. The host accepted it in under a second and logged it as delivered. It never arrived. Not the inbox, not spam, not promotions. Nowhere. The host silently drops application mail and tells the application it succeeded.

Bureaucracy is a construction by which a person is conveniently separated from the consequences of his or her actions.

Nassim Nicholas Taleb wrote that in Skin in the Game about institutions, not mail servers, but it is the cleanest description of this failure I know. The host bears no cost when the confirmation disappears. The shop does. So the host’s log is an honest record of what the host did and a useless record of what the customer received, and nobody in the chain is incentivised to close that gap for you.

It is the same shape as other silent failures I keep running into. Everything returned 200 while nothing worked. A promotion died quietly across four shops with every dashboard green. The pattern is always a system reporting on its own behaviour rather than on the outcome.

Why the default setup is the problem

On WordPress, which is what most of these shops run on, the platform sends mail through wp_mail(). Read the function reference and you will find it hands the message to PHP’s own mail facility unless something replaces it. That means your order confirmations, password resets and shipping notices leave from whatever your web server happens to be, on an IP you share with every other site on that box, with no signature attached.

Receivers have been getting stricter about exactly that. DMARC builds on SPF and DKIM and asks a simple question: does this message actually line up with what the domain owner says is allowed to send for them? Unsigned mail from a shared web host, with no alignment and no policy published, is the profile of mail that gets quietly binned. Google’s own sender guidelines spell out what they now expect authenticated mail to look like.

The deeper point is that transactional mail and website hosting are two different jobs that happen to share a domain. One has to arrive within seconds, every time, or you have a support ticket and a refund request. The other has to serve pages. Bundling them because they came in the same hosting package is how you end up with a revenue-critical channel running on a best-effort service.

The setup that fixed it

Nothing exotic, and all of it is a weekend’s work on one shop:

Move sending off the web host and onto a dedicated transactional provider. Install an SMTP plugin on the shop and point it at that provider’s API rather than at PHP mail. In DNS, add the provider’s return-path record so the envelope sender aligns, its DKIM record so every message is signed, and a tracking record if you want click data. Then publish a DMARC record. Start at p=none — that is monitoring, not enforcement, and it lets you see what is being sent in your name before you start rejecting anything.

Finally, turn the provider’s logging on and keep a couple of weeks of retention. The whole reason this bug survived was that nobody could see what had left the building.

The test mail after the switch arrived in seconds. The three shops on the other host were left alone, because they were never broken and changing a working sender is how you break it.

What I would still check, and what I did not verify

Two honest gaps, because the tidy version of this story is not the true one.

I did not confirm the SPF and DKIM pass from the message headers. The test mail that proved the fix got deleted before I thought to open the raw source, and the provider’s own domain verification was green, which is weaker evidence than a header. If you do this, open one delivered message and read the authentication results. It takes a minute and it is the only direct proof you get.

And free tiers have ceilings. The provider’s free plan covers a bounded number of messages a month, which is comfortable for this shop today and would stop sending the month it is not. A cap on your order confirmations is a worse failure than the one I just fixed, so that number belongs on someone’s calendar, not in someone’s memory.

The check I would actually build, and offered here, is dull and useful: once a week, compare new orders against the mail log and flag any order with no confirmation. Not a dashboard. A list that is empty most weeks. The monitoring you want is the kind that produces nothing until something is wrong, which is the opposite of how most shop reporting is built. And if you are tempted to just try the fix on the live shop and watch what happens, read what happened when we fixed checkout in production first.

If your shop’s order mails “sometimes” don’t arrive, send me the shop URL and I’ll tell you where I’d look first. remco@livain.com, or WhatsApp.

A log entry that says delivered is a statement about a server. Ask the customer.

Sources & further reading

External

  • DMARC Overview — dmarc.org, on how DMARC builds on SPF and DKIM and what alignment means
  • Email sender guidelines — Google Workspace Admin Help, on authentication expectations for senders
  • wp_mail() — WordPress developer reference, on how WordPress sends mail and how to replace it
  • Nassim Nicholas Taleb, Skin in the Game, on systems separated from the consequences of their actions

Related posts

A question about this, or your own experience with it? Write to me.