Question
We have had a Divi contact form on our GoDaddy hosted site that happily sent messages to our gmail account for years. About a month ago it stopped working. I changed the email address to send to a company domain Office 365 address and it works. But when the form is set to send to our email address on Gmail Workspace the message never shows up (not in inbox, not in spam, not anywhere). We could not find any mail logs in WordPress.
Answer
Office 365 taking the form’s mail while Gmail shows nothing most likely means the mail does not prove it comes from your domain, and the two services treat that differently. The proof is SPF or DKIM, and the form’s mail probably leaves the host with neither passing. For personal Gmail accounts,
Google requires SPF or DKIM from every sender and says mail without them might be marked as spam or rejected. The mailbox in this question is on Google Workspace, where
Google says those guidelines do not apply and an admin’s own settings decide. One of them, quarantine, holds a message where the user sees it in neither the inbox nor spam, which fits the question but cannot be confirmed from it. Microsoft 365 combines SPF, DKIM, and DMARC with sender reputation and behavioral signals into a composite result that can send the message to Junk, or still let it reach the inbox.
The fix is to stop sending through the host’s MTA and route through a transactional provider that publishes SPF and signs DKIM. That means an SMTP plugin plus an external provider, and the From address aligned to the domain those records authenticate.
Why Gmail and Microsoft 365 behave differently
Google’s sender guidelines cover mail to personal Gmail accounts. Every sender to those accounts has needed SPF or DKIM since February 1, 2024; an earlier rule,
from November 2022, covered new senders only. Bulk senders need SPF, DKIM and a DMARC record;
Google defines a bulk sender as a sender of close to 5,000 messages or more to personal Gmail accounts within 24 hours.
Google Workspace has its own control. Among the Gmail
spoofing and authentication settings in the Admin console is “Protect against any unauthenticated emails”, which covers messages with neither SPF nor DKIM. Its action can keep the message in the inbox with a warning (the listed default), move it to spam, or quarantine it.
Microsoft 365’s inbound filtering works differently. Exchange Online Protection extends SPF, DKIM, and DMARC evaluation with additional signals (sender reputation, history, recipient history, and behavioral analysis) into a single composite authentication result (compauth). Microsoft documents this system explicitly: “a composite authentication failure doesn’t directly result in a message being blocked. Our system uses a holistic evaluation strategy that considers the overall suspicious nature of a message along with composite authentication results” (
Email authentication in Microsoft 365). A message that fails all three traditional checks and produces compauth=fail is typically routed to Junk rather than rejected at the SMTP level, unless other signals (a blocklisted IP, a content match to known phishing patterns) cross the threshold into an SMTP-level reject.
So one unauthenticated message can land in Microsoft 365 while personal Gmail refuses it or a Workspace quarantine holds it. Delivery at Office 365 does not show that the mail is authenticated.
The chain that broke
A Divi contact form on a standard WordPress installation submits via the WordPress AJAX endpoint at admin-ajax.php. The Divi module handles the server-side in et_pb_contact_form_submit; on successful validation, it calls WordPress’s wp_mail() with the recipient from the form’s Email tab and a body assembled from the submitted fields.
wp_mail() constructs the From header in wp-includes/pluggable.php. Without an explicit override, the code strips any www. prefix from the site’s home URL host and constructs the address as wordpress@<domain>. A site at example.com or www.example.com both produce [email protected]. A site on a subdomain (shop.example.com) produces [email protected]. In any case, the From domain must be covered by the SPF record and DKIM signing on that domain for the message to authenticate correctly at the recipient end.
Unless a plugin replaces the mailer, wp_mail() then hands the message to PHP’s mail() function. On a Linux host, mail() runs the program set in PHP’s sendmail_path, by default /usr/sbin/sendmail -t -i, which passes the message to the host’s outbound MTA. GoDaddy’s shared hosting has historically relayed outbound through its own infrastructure. The relay sends from an IP address in GoDaddy’s pool, not from an IP the customer has registered as authorised for their domain.
At the recipient end, the authentication checks run in sequence:
SPF: does the sending IP appear in an SPF record published for the Return-Path domain? If the site has no SPF record, or if the record does not include GoDaddy’s relay infrastructure, the check fails (SPF=fail or SPF=none).
DKIM: is there a valid DKIM signature on the message, verifiable via a public key in the From domain’s DNS? If the host does not DKIM-sign outbound relay mail for the customer’s domain, the signature is absent (DKIM=none).
DMARC: with SPF failing and DKIM absent, DMARC alignment cannot be established. With no DMARC record on the From domain, or one at p=none, the domain does not ask for the message to be blocked, so the receiver’s own rules decide.
At a personal Gmail account, that can mean spam or a 5.7.26 rejection. At a Workspace account, it depends on the admin’s settings. The Divi-specific diagnostic chain covers the form-side checks; the problem described here is downstream of the form.
How to confirm what your site is actually sending
Three checks before touching the DNS. The last one applies only when the missing mail was addressed to Google Workspace.
Install a logging plugin. Log Emails and Check & Log Email (2.0.18 or later) both record each outgoing call, at different points, so their From addresses differ. Log Emails records at the phpmailer_init action and reads the From off the message as WordPress built it, after the wp_mail_from filter has run. That is the From value recorded from PHPMailer at that hook; it does not establish the final message’s SPF or DKIM identity. Use the authentication results on the received message to check SPF and DKIM. Check & Log Email records earlier, on the wp_mail filter: its From is the one the form plugin passed, blank if it passed none, and WordPress’s default address or a mailer plugin’s setting can replace it before the send. Submit a test contact form. Check & Log Email also marks the entry failed, with the error, if WordPress reports a failure; Log Emails keeps no send status.
Run the message through mail-tester.com. Submit a contact form to a mail-tester.com address. The score report breaks down SPF, DKIM, and DMARC as a receiving server sees them, with separate pass/fail/none status for each check. This is the fastest way to see the authentication result from outside the sending domain’s DNS.
On Google Workspace, look at the receiving end. Ask the admin to find the message in
Email Log Search (Admin console, under Reporting) and to check the
quarantine. A message that arrived and was held there needs releasing, and the sending side still needs the fix below.
After the fix is applied, register the domain with Google Postmaster Tools. Postmaster Tools shows authentication pass rates, spam rate, and domain reputation as Google’s infrastructure measures them: the ground-truth view of how Gmail sees the sending domain once SPF and DKIM are in place. The email test suite and inbox placement testing guide cover the full verification sequence.
The fix
Three steps, in order.
1. Install an SMTP plugin and route through a transactional provider
Stop sending through the host’s MTA. A transactional provider publishes its own SPF records and DKIM keys, signs outbound mail on the customer’s behalf, and maintains the sending infrastructure at the authentication and reputation standards Gmail now requires.
The SMTP plugin side: WP Mail SMTP, FluentSMTP, and Post SMTP are the three plugins in regular use on WordPress sites. All three support the major transactional providers and handle the SMTP handshake correctly.
The provider side: Postmark is the cleanest starting point for most contact form senders. SMTP2GO has the most generous free tier. Mailgun and Resend are the other common options at this tier. Amazon SES is the cheapest at any volume above trivial, with the trade-off of more setup overhead.
The WordPress email setup guide covers the full configuration path from a blank SMTP plugin to a working authenticated sender.
2. Publish SPF and DKIM for that provider
Every transactional provider lists the DNS records for the customer’s sending setup. Postmark’s default Return-Path needs no customer SPF record; an optional custom Return-Path uses a CNAME. SMTP2GO’s verified sender setup provides CNAME records that handle SPF and DKIM without an update to the existing root SPF record. Add the records the provider lists for the mode you use. Verify DKIM with dig TXT <selector>._domainkey.example.com, and SPF with dig TXT on the name the provider specifies. The DNS setup guide for WordPress email covers the record formats and the steps inside major DNS providers.
Once SPF and DKIM are in place, publish a DMARC record at minimum:
v=DMARC1; p=none; rua=mailto:[email protected]
p=none satisfies Google’s monitoring requirement for bulk senders and starts generating aggregate reports showing authentication pass rates. Tighten to p=quarantine and later p=reject only after the reports confirm alignment is stable across all sending paths. The DMARC aggregate report guide explains how to read what Postmaster Tools and the RUA reports show.
3. Align the From address
Set the SMTP plugin’s “From Email” to an address on the same organisational domain the SPF and DKIM records are published for. Enable “Force From Email” where the plugin shows it, to prevent other plugins from overriding the From with a value that does not align. In Post SMTP it is “Prevent plugins and themes from changing this.” FluentSMTP offers “Force From Email” for SMTP, Amazon SES, toSend and PHP mail() connections; a newly set up connection of any other type applies its From Email without it.
The default From wp_mail() constructs is wordpress@<your-domain>. If the SPF and DKIM are published for example.com but the SMTP plugin’s From is left at the [email protected] default, the match is already correct; alignment is not the issue on a standard domain. Where alignment fails is when the SMTP plugin’s From is set to an address on a different domain than the one with the SPF and DKIM records, or when the SPF records simply do not cover the sending IPs. Setting From to [email protected] or [email protected] covers the first case; the DNS records in step 2 cover the second. The guide to changing WordPress email sender details shows the exact setting path inside each major SMTP plugin.
A note on GoDaddy shared hosting
GoDaddy’s shared-hosting accounts relay outbound PHP mail through GoDaddy’s MTA infrastructure, not the customer’s domain. GoDaddy’s relay IPs are not in the customer’s SPF record, and GoDaddy does not DKIM-sign relay mail for the customer’s domain. Attempting to fix this by chasing GoDaddy’s relay IPs into the customer’s SPF is fragile: GoDaddy changes relay infrastructure without notice, and including GoDaddy’s infrastructure domain in the SPF record authorises a large IP range the customer does not control.
The correct path is to bypass the relay entirely by installing an SMTP plugin and routing through an external transactional provider. The same solution applies to any cPanel-style shared host whose outbound relay the customer does not control. The relay stops being involved in authentication; the provider handles it instead.
If the failing recipient is an address at your own domain, the problem may not be authentication. cPanel says a Local Mail Exchanger accepts mail for the domain and delivers it to a local mailbox. That may explain a WordPress message not reaching a provider that hosts the domain’s mailboxes, but cPanel’s documentation does not specify the path for locally submitted PHP mail. Why WordPress email to your own domain bounces with “550 No Such User Here” shows how to check the routing.
If you only fix one thing
The single change most likely to recover Gmail delivery on a site whose contact form reaches Microsoft 365 but fails Gmail is to route mail through an authenticated transactional provider. Install WP Mail SMTP, FluentSMTP, or Post SMTP; sign up for Postmark or SMTP2GO; publish the DNS records the provider’s setup lists; Postmark’s default Return-Path and SMTP2GO’s verified-sender setup do not require an SPF include on the root domain; set the SMTP plugin’s From address to an address on the authenticated domain. That can meet Google’s SPF-or-DKIM requirement when the provider’s authentication passes; it can also remove the corresponding authentication failure from Microsoft’s composite result. Neither result guarantees inbox delivery. The general WordPress email troubleshooting guide is the reference for any sending failure that persists after the provider is connected.
Corrections
- 2026-11-26: an earlier version said most shared-hosting sites have no SPF record and no DKIM signing, and that PHP hands mail to the local sendmail binary on most shared hosts. Neither count had a source. On Linux, PHP’s
mail()runs the program set insendmail_path, which defaults to/usr/sbin/sendmail -t -i. - 2026-11-26: an earlier version said Check & Log Email and Log Emails both show the From address WordPress used. Check & Log Email shows the From the form plugin passed, blank if it passed none; Log Emails shows the From on the message as built. Log Emails records no send status.
- 2026-11-26: an earlier version said Gmail rejects unauthenticated mail as a hard gate and that this explained the question. Google’s sender guidelines say unauthenticated mail to personal Gmail accounts might be marked as spam or rejected. The guidelines do not apply to the questioner’s mailbox, which is on Google Workspace, so that outcome cannot be inferred for the questioner’s message. It also said Gmail accepts mail once it is authenticated; that is not guaranteed.
- 2026-11-12: an earlier version said every transactional provider, Postmark and SMTP2GO included, supplies an SPF include for the root domain. Postmark’s default Return-Path and SMTP2GO’s verified-sender setup do not require an SPF include on the root domain.
- 2026-11-25: an earlier version told every reader to enable “Force From Email”; FluentSMTP offers it only for SMTP, Amazon SES, toSend and PHP mail() connections. It also said that setting the From address fixes SPF records that do not cover the sending IPs. The From address does not fix them; the DNS records in step 2 do.
