“The form is broken — I never got the email” is the single most common ticket we get on WordPress sites with active lead capture. Nine times out of ten the form is fine: the submission saved, the plugin called wp_mail(), the host accepted the message. The problem is everything after: the host’s IP is on a blocklist, the From address fails DMARC alignment, the message landed in Junk, or a forwarder ate the bounce.
What’s happening
WordPress sends through wp_mail(), which by default hands off to PHP mail(), which on most shared hosts uses Exim or sendmail bound to a shared IP. That IP often has poor reputation. Worse, the From header is usually set to the submitter’s address (so the site owner can hit Reply), which means a message claiming to be random.visitor@gmail.com is sent from your server’s IP — every receiver enforcing DMARC will reject it. The plugin reports success. The inbox is empty.
How to verify
Test mail flow end-to-end:
wp eval 'echo wp_mail("you+wp-test@yourdomain.com", "wp_mail test " . time(), "test body");'
tail -n 200 /var/log/exim_mainlog | grep yourdomain.com
dig +short TXT yourdomain.com | grep spf
dig +short TXT _dmarc.yourdomain.com
In the WordPress site, install Fluent SMTP or WP Mail SMTP temporarily and check its log. Submit a test form. Then check the form recipient’s full inbox, including Junk, Promotions, and Other. Use a third-party mailbox at https://www.mail-tester.com to score the message.
The fix
- Route through a real SMTP provider: install Fluent SMTP or WP Mail SMTP and connect Postmark, SendGrid, Amazon SES, or Microsoft 365. These IPs have reputation and authenticate properly.
- Fix the From address: never use the submitter’s email as From. Use
noreply@<wordpress-domain>orforms@<wordpress-domain>and set the submitter’s address in Reply-To. This is the single biggest deliverability fix. - Publish SPF for the actual senders:
v=spf1 include:spf.<provider>.com -all. Drop legacy includes (the host’s SPF) once mail no longer flows through them. - Enable DKIM at the SMTP provider and publish the CNAME or TXT records they give you. Verify with
dig +short TXT <selector>._domainkey.<domain>. - Publish DMARC at
p=nonewith a reporting address (v=DMARC1; p=none; rua=mailto:dmarc@<domain>), watch reports for two weeks, then move top=quarantine. - Confirm the receiver: if the recipient is on Microsoft 365 or Google Workspace, check the message trace or admin quarantine. A message in quarantine still counts as “delivered” to the sender.
For WordPress sites where missing form emails translate to missing revenue, deliverability monitoring is part of our enterprise WordPress retainer. To audit your form-to-inbox path before the next campaign, book a scoping call.