How to fix missing spf on WooCommerce REST API

Add a DNS TXT record containing a valid SPF policy to your domain so that email receivers can verify which servers are authorised to send mail on your behalf.

Steps for WooCommerce REST API

  1. This is a headless WooCommerce setup; email is still sent by the WordPress/WooCommerce backend via your SMTP configuration.
  2. Identify your SMTP provider in your SMTP plugin settings (e.g. WP Mail SMTP → Settings) and add its SPF include: tag to a TXT record at '@' in your DNS provider.
  3. Verify propagation.
Official WooCommerce REST API documentation ↗

What is missing spf?

SPF (Sender Policy Framework) is a DNS record — a single line of text you publish at your domain — that lists every mail server and service allowed to send email from your domain address. When someone receives an email claiming to be from you, their mail server looks up this record and checks whether the sending server is on your approved list. If there is no SPF record at all, there is nothing to check against, and your domain is completely open to impersonation. Think of it as a guest list for who is allowed to send email in your name.

Without an SPF record, criminals can forge your domain in the "From" address of phishing or spam emails — a technique called email spoofing — and your customers, suppliers, or partners may receive fraudulent messages that appear to come from your business. This directly harms customer trust and can expose you to legal liability. Beyond fraud risk, major email providers (Google, Microsoft, Yahoo) now treat domains without SPF as suspicious and are more likely to send your legitimate transactional emails — order confirmations, shipping notices, password resets — straight to spam, costing you sales and customer satisfaction. A missing SPF record also contributes to OWASP A05:2021 Security Misconfiguration findings, which can affect security audits and partner due-diligence reviews.

See the complete Missing spf guide for every platform and the full background.

Not sure if your WooCommerce REST API store has this?

Run a free SEOLZ scan — we’ll find missing spf and every other issue across your whole site.

Scan my site free

Fix missing spf on another platform