How can WordPress send emails under my own domain name?

WordPress can send mail from [email protected], [email protected], or any address on a domain you control. Route the mail through a sending provider and publish that provider’s records at your DNS host. The DKIM record ties the mail to your domain: it holds the public key your provider uses to sign outgoing messages. Where SPF goes depends on the provider. Google Workspace and Microsoft 365 send with your domain as the envelope sender (the bounce address SPF checks), so your domain’s SPF record needs their include. Postmark and SMTP2GO handle SPF on their own return-path domains by default. Amazon SES uses an amazonses.com MAIL FROM domain by default, so it needs no SPF record on your root domain. If you set a custom MAIL FROM subdomain in SES, publish the MX and SPF TXT records AWS specifies on that subdomain. Then publish a DMARC policy (optional, but strongly recommended). DMARC passes when at least one SPF or DKIM check passes with an identifier aligned to the domain in your From: address. Alignment can allow a subdomain to match its parent domain, depending on your DMARC settings. The policy tells mailbox providers what to do with mail that fails. None of this happens inside WordPress, which doesn’t manage DNS.

The setup is not WordPress-specific: it’s how authenticated email works on the internet. What is WordPress-specific is that many WordPress sites skip this setup entirely, rely on their host’s default mail() function, and end up sending mail that authenticates for the host’s domain (or authenticates for nothing) rather than for the site’s own domain. Mail that authenticates for nothing is at risk of the spam folder or rejection: Google requires SPF or DKIM from every sender to personal Gmail accounts. Mail that authenticates for the host’s domain can meet that and still fail DMARC for your domain.

The three DNS records, and what each one does

SPF (Sender Policy Framework). A TXT record on the domain’s apex that lists the servers or providers authorised to send mail using that domain as the envelope sender. Looks like v=spf1 include:spf.messagingengine.com include:_spf.google.com ~all. When a mailbox provider receives a message, it checks the sending IP against the SPF record for the message’s envelope sender domain. If the IP is not authorised, SPF does not pass.

You publish one SPF record for each domain used as an envelope sender. If several services send with your domain as their envelope sender (for example, Google Workspace and Microsoft 365), the record needs the include clauses their setup instructions specify. Elastic Email’s default bounce domain is bounces.elasticemail.net; use its sender-domain SPF setup for the domain and configure its bounce domain deliberately if you need SPF alignment with your From domain. Postmark and SMTP2GO document provider-managed SPF on their default return paths. For Brevo, the domain-authentication guide says an SPF record is not required for standard domain authentication; dedicated-IP setup supplies SPF for the associated subdomain. Check the provider’s instructions for the sending mode you use.

DKIM (DomainKeys Identified Mail). One or two TXT records on a provider-specified subdomain (typically <selector>._domainkey.yourdomain.com). The record contains the public half of a cryptographic key. The provider signs every outgoing message with the private half; the receiving mailbox provider fetches your public key to verify the signature. If the message was altered in transit or came from someone who doesn’t hold the private key, DKIM fails.

Every provider publishes its own DKIM record shapes. Postmark uses one record on a dated selector it generates for your domain, ending in pm: its docs show 2023060112345pm._domainkey.yourdomain.com. Amazon SES uses three CNAME records pointing at Amazon-hosted keys. Google Workspace uses google._domainkey.yourdomain.com. Publish exactly what your provider’s DKIM setup page tells you.

DMARC (Domain-based Message Authentication, Reporting, and Conformance). One TXT record at _dmarc.yourdomain.com that tells mailbox providers what to do with mail that fails SPF and DKIM, and where to send reports about failures. Looks like v=DMARC1; p=quarantine; rua=mailto:[email protected]; adkim=r; aspf=r.

DMARC is not strictly required for a WordPress site to send authenticated mail: SPF and DKIM alone are enough for the message to authenticate at the mailbox provider. But Gmail’s post-February-2024 sender requirements ask for a DMARC policy on sending domains, and Yahoo has the same requirement. A DMARC record at p=none (report-only) is the safe way to publish one initially; graduate to p=quarantine once the reports show your mail is authenticating cleanly.

The WordPress side, once DNS is published

The WordPress side is small compared with the DNS side. Two settings inside the SMTP plugin:

  1. The From: address. Set it to an address on your domain: [email protected], [email protected], whatever fits the site’s tone. The address doesn’t have to be a real inbox that receives replies (though it can be); it just has to be on the domain you published your provider’s DKIM record for.
  2. “Force From Email.” Enable this if the plugin shows it. WooCommerce, membership plugins, and contact form plugins routinely set their own From: headers per-message, and any override that doesn’t match your authenticated domain will fail DKIM alignment. Forcing the From address makes WP Mail SMTP and Post SMTP (where the setting is “Prevent plugins and themes from changing this”) overwrite these per-message overrides. FluentSMTP overwrites them unless the address belongs to one of its connections. It offers the checkbox for SMTP, Amazon SES, toSend and PHP mail() connections; a newly set up connection of any other type applies its From Email without it.

That’s it. The plugin sends mail through your provider’s authenticated pipeline, the provider signs it with the DKIM key on your domain, and mailbox providers receive it as legitimately-from-your-domain. See Change WordPress’s default email sender details for the mechanical setup.

Choosing the provider whose DNS you’ll be publishing

Every transactional provider works the same way from the WordPress operator’s side: add the records the provider lists for the mode you use. SPF and DKIM authenticate the identities named in those records; DMARC alignment depends on how those identities relate to the visible From domain. The providers differ on price, deliverability reputation, and how easy the DNS setup is. Common choices:

  • Postmark: the cleanest reputation for transactional mail. DNS setup is one DKIM record. Postmark documents provider-managed SPF on its default Return-Path. $15/mo for 10,000 messages.
  • SMTP2GO: generous free tier (1,000 messages/month, no card), straightforward DNS.
  • Amazon SES: cheapest at real volume ($0.10 per 1,000 messages on opt-in à la carte pricing, $0.16 on the default Essentials plan). DNS setup is three CNAME records and the initial “sandbox” account limits sending to verified recipients until you request production access.
  • Brevo: one account covers both transactional and marketing. Free tier caps at 300 messages per day.

See transactional email providers for WordPress for the full comparison. See best WordPress SMTP plugins for the plugin side.

Common mistakes

Publishing SPF as a plain A record or MX record. SPF must be a TXT record. Registrars sometimes have a separate “SPF” record type that maps to the deprecated SPF DNS record type; use TXT.

Publishing multiple SPF records for the same domain. RFC 7208 allows only one SPF TXT record per domain; multiple records are treated as a permanent error and the SPF check fails. If you already have a Google Workspace SPF include and are adding a transactional provider, merge them into a single record: v=spf1 include:_spf.google.com include:spf.messagingengine.com ~all.

Publishing DKIM on the apex instead of the provider’s selector. The provider’s DKIM setup page names the exact host to publish on (e.g., 20240101._domainkey). Publishing the record at the domain apex or at dkim.yourdomain.com won’t work: mailbox providers know exactly which selector to fetch based on the d= and s= values in the DKIM signature.

Publishing DMARC too strictly on day one. p=reject on a fresh setup will reject legitimate mail if there’s any misconfiguration or if a hosted service you forgot about is sending as your domain. Publish p=none initially, watch the reports for a week or two, then tighten.

Full walkthrough: How to set up DNS for WordPress email: SPF, DKIM, DMARC.

What happens if you skip the DNS setup

The WordPress site sends mail, WordPress sees no errors, and the messages either:

  • Land in Junk at Microsoft 365, which may file unauthenticated mail there.
  • Get marked as spam or rejected at personal Gmail accounts, which Google says might happen to mail with neither SPF nor DKIM.
  • Arrive as coming from the host’s domain rather than your domain, if the host’s default mail() sends from [email protected] and the host has published SPF for its own IPs but not for your domain. This works technically but breaks your brand: recipients see [email protected] instead of [email protected].

The fix in every case is the same: publish your provider’s DKIM record on your domain, add whatever SPF record its setup lists for the way you send (for some providers, nothing on your root domain), point the WordPress SMTP plugin at that provider, and set an explicit From: on your domain. See WordPress email setup: the complete guide for the end-to-end.

Corrections
  • 2026-11-26: an earlier version said mail authenticated for the host’s domain, or for nothing, is spam-foldered at best and rejected outright at Gmail after February 2024. Google says mail sent to personal Gmail accounts with neither SPF nor DKIM might be marked as spam or rejected. It also said Microsoft 365 and Yahoo do not reject unauthenticated mail, which had no source.
  • 2026-11-12: an earlier version gave Postmark’s DKIM selector as 20240101._domainkey. Postmark’s selectors end in pm, as in 2023060112345pm._domainkey.
  • 2026-11-12: an earlier version said a domain sending through Postmark and Brevo needs an SPF include for each. Postmark documents provider-managed SPF on its default Return-Path. Brevo says SPF is not required for standard domain authentication; dedicated-IP setup provides SPF for the associated subdomain.
  • 2026-11-12: an earlier version said every setup needs an SPF record on your domain that authorises your transactional provider. That holds for providers that send with your domain as the envelope sender, such as Google Workspace and Microsoft 365. Postmark, SMTP2GO and Amazon SES (by default) handle SPF on their own return-path domains. With each provider, configure DKIM to sign with your verified domain; that aligned DKIM signature can make the message pass DMARC even when SPF is not aligned with your From: address.
  • 2026-11-25: an earlier version told every reader to enable “Force From Email” and said forcing overwrites every per-message From. FluentSMTP offers the setting only for SMTP, Amazon SES, toSend and PHP mail() connections, and it keeps a From that belongs to one of its connections.