Transactional emails going to spam? How to fix SPF, DKIM and DMARC

Last updated on 23 Nov 2026
Secure transactional email delivered to the customer's inbox instead of spam
A customer has just paid for an order. They wait for the confirmation, refresh their inbox, see nothing, and email your support team to ask whether the payment went through. The message was there all along, in the spam folder, with the receipt and the tracking number.

A transactional email is a message your website sends automatically after an action: order confirmation, receipt, password reset, form reply. When it never arrives, or lands in spam, you get a worried buyer, a locked-out customer or a lost sales lead.

This guide explains why your emails are going to spam and how to fix it: the path an email takes, SPF, DKIM and DMARC authentication, the Gmail, Yahoo and Outlook sender requirements, replacing your site’s default mail function with an SMTP service, sender reputation, message content and the tests to run regularly. A generator helps you create your DMARC record.

At a glance

  • A transactional email (order, receipt, password, form) that lands in spam costs you sales and floods your support inbox.
  • SPF, DKIM and DMARC prove to mailbox providers that your domain is the legitimate sender; Gmail, Yahoo and Outlook now require them from bulk senders.
  • Replace the default mail function of WordPress or your host with an SMTP service authenticated for your domain.
  • A sender address on your own domain, plain messages and separate transactional and marketing streams protect your reputation.
  • Regular tests of forms, orders and password resets catch failures before your customers do.

What is a transactional email?

A transactional email is an individual message triggered automatically by a user action or an account event. It is different from marketing email (newsletters, promotions) sent to a contact list.

Email Trigger What happens if it never arrives
Order confirmation Payment approved Worry, support calls, payment disputes
Invoice or receipt Order or subscription Accounting follow-ups, lost trust
Shipping and tracking Package handed to the carrier “Where is my order?” requests
Password reset Customer request Locked-out account, abandoned purchase
Account creation Sign-up Account never activated
Contact or quote form Form submitted Lost sales lead
The main transactional emails a website sends.

Recipients expect these messages, often within seconds of their action. Their open rates are far higher than a newsletter’s, and their absence is noticed immediately. That is why they deserve their own, stricter setup than your campaigns.

Why your emails are going to spam: the path of a message

When a customer submits a form, your site (WordPress, WooCommerce, Shopify…) composes the message and hands it to a sending server. The recipient’s mail server (Gmail, Outlook, Yahoo, iCloud, Comcast…) receives it and asks three questions before filing it: is this sender allowed to send on behalf of this domain? Was the message changed in transit? Do the sender’s reputation and the content look trustworthy?

1

The site composes the messageWordPress, WooCommerce or Shopify generates the email after an action.
2

A sending server relays itDefault server function, your mailbox SMTP or a transactional service.
3

The recipient’s mailbox checks itSPF, DKIM and DMARC for the domain, IP and domain reputation.
4

It analyzes the contentLinks, images, attachments, similarity to spam.
5

It files the messageInbox, spam folder or rejection.
The path of a transactional email and the checks it goes through.

So the most common reasons an email lands in spam or disappears are:

  • sending through the server’s default function (PHP mail()), with no authentication;
  • a From address that does not belong to the sending domain (a form that sends “from” the visitor’s address);
  • missing or broken SPF, DKIM or DMARC records;
  • a shared hosting IP address whose reputation was damaged by other sites;
  • content that looks like spam (shortened links, heavy attachments, image-only messages);
  • repeated sends to addresses that do not exist, which hurt the domain’s reputation.

SPF, DKIM and DMARC: authenticating your domain

These three mechanisms are records added to your domain’s DNS zone. They cost nothing, and today they are essential.

SPF: who is allowed to send for your domain

The SPF record lists the servers allowed to send email using your domain: your mailbox provider (Google Workspace, Microsoft 365…), your transactional email service, your newsletter tool. Any server missing from the list is treated as unauthorized. There must be only one SPF record per domain, combining all your services, and it must not exceed ten DNS lookups.

DKIM: a signature that proves authenticity

DKIM adds a digital signature to every email, which can be verified with a public key published in your DNS. The recipient can then check that the message really comes from your domain and was not altered on the way. Each sending service gives you its own DKIM key to add.

DMARC: what to do when checks fail

DMARC tells mailbox providers what to do with an email that claims to come from your domain but fails SPF and DKIM: nothing (p=none), send it to spam (p=quarantine) or reject it (p=reject). It also sends you reports on mail sent with your domain, useful for spotting a forgotten service or spoofing. A website security analysis also checks these records. Most people start with p=none, review the reports for a few weeks, then tighten the policy.

DMARC record generator: copy the name and value into your domain’s DNS zone.

Transactional email: SPF, DKIM and DMARC so order confirmations don't land in spam

Gmail, Yahoo and Outlook sender requirements

Since February 2024, Gmail and Yahoo have enforced rules for senders: everyone must authenticate email with SPF or DKIM, and those who send more than 5,000 messages a day to their users must have SPF, DKIM and DMARC, one-click unsubscribe for marketing email and a low spam complaint rate. Microsoft began applying equivalent requirements for Outlook.com in May 2025.

Even if you send little, these rules apply in practice: mailbox providers treat any unauthenticated domain with suspicion. An online store or a business website should therefore have all three records set up correctly.

Replace the default mail function with an SMTP service

By default, WordPress and many CMSs send email with the hosting server’s PHP mail() function, without authentication. It is the number one reason contact forms never arrive.

The fix is to send through an authenticated SMTP server, in one of two ways:

  • your mailbox provider’s SMTP (Google Workspace, Microsoft 365), enough for a business site that sends few messages;
  • a transactional email service (Postmark, Mailgun, Amazon SES, SendGrid, Brevo…), recommended for an online store: it handles volume, bounces, statistics and sender reputation.

On WordPress, an SMTP plugin connects the site to the service. On Shopify, the platform handles sending, but you need to authenticate your domain in the settings to send from your own address. On WooCommerce, the SMTP plugin covers store emails too.

Your forms or order confirmations are not arriving? Explore our website maintenance services

Sending best practices

A sender address on your own domain

The From address must belong to the authenticated domain: orders@yourdomain, no-reply@yourdomain, hello@yourdomain. For a contact form, never use the visitor’s address as the sender; put it in the Reply-To field. Otherwise the message fails DMARC for the visitor’s domain and goes to spam or gets rejected.

Separate transactional and marketing email

Newsletters always generate some unsubscribes and a few complaints. If they leave from the same domain and servers as your order confirmations, a poorly received campaign can drag down the deliverability of your transactional emails. Use a different subdomain (for example news.yourdomain for marketing) or separate streams with your provider.

Handle bounces and invalid addresses

An email sent to an address that does not exist bounces back (a hard bounce). Continuing to write to those addresses signals a careless sender. Transactional services suppress these addresses automatically: make sure that is switched on, and clean up customer accounts with bad addresses.

Plain, useful content

A transactional email should stay clear: an explicit subject line (“Your order #1234 is confirmed”), text that reads fine without images, few links and all pointing to your domain, no link shorteners, light attachments (a PDF receipt rather than a catalog). Do not pack it with promotions, or filters will start treating it as marketing.

Test and monitor deliverability

Email problems are silent: nobody tells you a message never arrived. Set up a routine:

  • Every month, test the contact form, an order, account creation and a password reset yourself, to a Gmail and an Outlook address.
  • After every change (new host, new plugin, new service), check that your SPF, DKIM and DMARC records are still valid.
  • Continuously, watch your sending service’s statistics (bounces, complaints) and, if you send a lot to Gmail, Google Postmaster Tools.
  • Review DMARC reports to spot a service sending on your behalf that was never declared.

Free online tools check your DNS records and score a test message. They show quickly what is missing.

Testing website email deliverability: forms, orders and password resets

Quick troubleshooting: are your emails arriving?

Symptom Likely cause Fix
No form emails go out at all Default mail function blocked by the host Set up authenticated SMTP
Emails land in spam at Gmail SPF, DKIM or DMARC missing or not aligned Add or fix the DNS records
Only form emails land in spam Visitor’s address used as the sender Sender on your domain, visitor in Reply-To
Emails arrive late Overloaded sending service or server queue Dedicated transactional service
Newsletters work, order emails do not Mixed streams or store misconfiguration Separate streams, check store email settings
Errors after changing hosts SPF not updated with the new servers Update SPF and test again
Quick troubleshooting for transactional email problems.

Common mistakes

  • Two SPF records. Only one is allowed: merge them, or SPF becomes invalid.
  • Forgetting a service. You add an invoicing tool or a CRM that sends email, without adding it to SPF or setting up its DKIM.
  • Jumping straight to p=reject. Without reviewing reports first, you may block your own legitimate email.
  • The visitor’s address as sender. Misconfigured forms fail DMARC checks.
  • Sending everything from one stream. A marketing campaign that draws complaints hurts your order confirmations.
  • Never testing. A plugin update can break sending without anyone noticing.

The bottom line

To get your transactional emails into the inbox, authenticate your domain with SPF, DKIM and DMARC, replace your site’s default mail function with an authenticated SMTP service, send from an address on your domain with the visitor in Reply-To, separate marketing and transactional streams, and handle bounces. Then test forms, orders and password resets every month: an email that never arrives never warns you.

Frequently asked questions about transactional emails and spam

Why are my website’s emails going to spam?

Most often, the site sends email with the server’s default function, without authentication, or with a From address that does not belong to the domain. Missing or broken SPF, DKIM and DMARC records, a hosting IP with a poor reputation or suspicious content are the other usual causes. An authenticated SMTP service and correct DNS records fix most cases.

What is the difference between SPF, DKIM and DMARC?

SPF lists the servers allowed to send email for your domain. DKIM adds a digital signature proving the message comes from your domain and was not modified. DMARC tells mailbox providers what to do with a message that fails those checks (nothing, spam or reject) and sends reports on mail sent with your domain. All three are set up in your DNS zone.

Does a small website need a transactional email service?

For a business site that sends a few messages a day, your business mailbox’s SMTP is enough, as long as it is set up properly. For an online store, a transactional service such as Postmark, Mailgun, Amazon SES or SendGrid is recommended: it handles volume, bounces, statistics and sender reputation, and it gives you the SPF and DKIM records to add.

How do I know if my transactional emails are being delivered?

Test the contact form, an order, account creation and a password reset yourself every month, to Gmail and Outlook addresses. Review your sending service’s statistics (bounces, complaints) and your DMARC reports. Free online tools also check your DNS records and score a test message.

Which DMARC policy should I choose?

Start with p=none and a reporting address, to see who sends email with your domain without blocking anything. After a few weeks, once all your legitimate services are authenticated, move to p=quarantine, then to p=reject if you want to fully block spoofing of your domain. Jumping straight to p=reject risks blocking your own email.

My contact form stopped sending emails: what should I check?

First check that sending goes through authenticated SMTP rather than the server’s default function, then that the From address belongs to your domain, with the visitor’s address in Reply-To. Next check your SPF, DKIM and DMARC records, the spam folder of the receiving inbox and your SMTP plugin’s email log, which often shows the exact error.

Our sources

    Download the module

    Enter your first name and email address and we will email you the module:


      Téléchargement du module

      Laissez-nous votre prénom et votre adresse de courriel pour vous envoyer le module par courriel:


        Pssssst Attendez...

        Laissez nous votre meilleure adresse email et vous recevrez le premier nos prochaines publications...