On this page
What this issue is
Every WordPress form plugin (Contact Form 7, WPForms, Gravity Forms, Fluent Forms and others) sends its owner notification through a function called wp_mail(). Out of the box, wp_mail() uses PHP's built-in mail() function. That function passes the message to the web server's local mail program with no login and no signature.
Why it costs you leads or sales
The visitor did everything right and saw a success message. You never hear about them. If the notification is your only way to learn about enquiries, each lost email is a lost lead, and nobody notices because nothing looks broken. It can run for weeks.
- Visitor submits formSuccess message shown
- wp_mail() calledReturns true
- PHP mail() on hostMessage dropped or rejected
- Owner inboxNothing arrives
- Sales follow-upNever happens
The form works and the page shows success, but the host discards the email.
Example: 40 people submit the form, but only 12 notifications get through before the host drops the rest.
How to check if your site has it
Submit your own form
Use a real address you control, ideally one on a different provider from the recipient. Wait ten minutes and check inbox and spam.
Check your form plugin's entriesWordPress
If the entry is saved in WordPress but no email arrived, delivery is the problem, not the form.
Look at the headers of any mail that does arrive
In Gmail choose Show original. Mail sent by the host usually shows SPF pass for the host's own server, and DKIM none or fail. That pattern points to PHP mail().
Check whether an SMTP plugin is activeWordPress
Go to Plugins in the WordPress admin. If there is no WP Mail SMTP, FluentSMTP or similar, you are probably on PHP mail().
Ask your host
Ask whether PHP mail() is enabled and whether outgoing mail is blocked or limited on your plan.
How to fix it
Stop using PHP mail(). Send through a real mail service that requires a login, such as your Google Workspace or Microsoft 365 account, or a transactional email provider. Then make sure the sending domain has SPF and DKIM records for that service.
Install an SMTP plugin
Install WP Mail SMTP or FluentSMTP from Plugins > Add New.
Choose a mailer
Pick your provider (Google, Microsoft, or a transactional service) and enter its credentials or connect via its sign-in flow.
Set a From address on your own domain
Use something like leads@yourdomain.com, and enable the force-from option so form plugins cannot override it.
Add DNS records
Add the SPF and DKIM records your provider gives you at your DNS host.
Send a test email
Use the plugin's Email Test tool and confirm it arrives.
Configure PHPMailer through a hook
If you do not want a plugin, set SMTP details in a small must-use plugin using the phpmailer_init action (code below). Keep the password in wp-config.php, not in the theme.
Add SPF and DKIM
Publish the records your SMTP provider specifies, then test.
<?php
// wp-content/mu-plugins/smtp.php
// Define SMTP_HOST, SMTP_USER, SMTP_PASS in wp-config.php
add_action( 'phpmailer_init', function ( $phpmailer ) {
$phpmailer->isSMTP();
$phpmailer->Host = SMTP_HOST;
$phpmailer->SMTPAuth = true;
$phpmailer->Port = 587;
$phpmailer->SMTPSecure = 'tls';
$phpmailer->Username = SMTP_USER;
$phpmailer->Password = SMTP_PASS;
} );How to confirm it's fixed
- The SMTP plugin's test email arrives in the inbox, not spam
- A real form submission produces a notification within a minute or two
- Gmail's Show original reports SPF pass, DKIM pass and DMARC pass for your domain
- The From address is on your own domain
- The plugin's email log (if enabled) shows the message as sent
PHP mail()
- Sent from the host's server
- SPF passes only for the host
- No DKIM signature
- Often dropped silently
Authenticated SMTP
- Logs in to a real mail service
- SPF aligned with your domain
- DKIM signed
- Delivery can be logged and traced
How to prevent it happening again
- Keep an SMTP plugin or mu-plugin active and note it in your site documentation
- Turn on email logging so failures are visible
- Re-test after host moves, PHP upgrades and plugin updates
- Submit a test lead on a schedule, not only after changes
- Keep SPF and DKIM records in step with any provider you add
How FunnelGuard handles this
FunnelGuard detects this issue only partly. A robot visitor submits your real form on a schedule, marked as test traffic, and checks whether the notification email arrives. If the email is missing, you get one alert with a screenshot and a likely cause.
When a copy does arrive, the email authentication check can name host-sent mail: SPF that passes only for the host and no DKIM signature. That is the typical PHP mail() pattern.
What it does not do: it cannot look inside your WordPress install to tell you that wp_mail() is using PHP mail(), and it cannot see why a host dropped a message. It also cannot tell a host-level discard from other causes of a missing email, such as a wrong recipient. Cover the rest by hand: check Plugins for an SMTP plugin, read the headers of a received notification, and ask your host about mail restrictions.
Questions people ask
Why is my WordPress form not sending emails?
The most common cause is that WordPress sends mail with PHP mail() from your web host, and the host or the receiving server drops it. The form still shows success. Install an SMTP plugin and send through an authenticated provider.
Why does wp_mail return true but no email arrives?
wp_mail() returns true when PHP accepts the message for handoff, not when it is delivered. The host's mail server or the recipient's server may discard it later with no error shown to WordPress.
How do I fix WordPress emails not being delivered?
Install WP Mail SMTP or FluentSMTP, connect your mail provider, use a From address on your own domain, and add the SPF and DKIM records your provider gives you. Then send a test email and submit the real form.
Do I need an SMTP plugin for WordPress?
In practice, yes, for any site that depends on form notifications. PHP mail() is unauthenticated and often blocked or filtered. SMTP with a login and DKIM signing is far more reliable.
How can I tell if my host is blocking PHP mail()?
Submit a form to an outside address and check whether anything arrives. Check the headers of any message that does: SPF passing only for the host and no DKIM suggests PHP mail(). Your host's support can confirm any block or limit.
Can FunnelGuard tell me wp_mail is the cause?
Only partly. It detects a missing notification email, and when a copy arrives it can flag host-sent mail with host SPF and no DKIM. It cannot see inside WordPress or the host, so you confirm the cause by hand.
Will changing to SMTP fix emails going to spam too?
Often, yes, because signed and aligned mail is trusted more. It is not a guarantee, so also check SPF, DKIM and DMARC for your domain and test with a real inbox.
Related issues
- DLV-001Form submits but no notification email is sent to the businessFix guide
- DLV-005Notification lands in the owner's Gmail/Outlook spam folderFix guide
- DLV-006Notification fails SPF because the site sends as the owner's domain from the web hostFix guide
- DLV-007Notification not DKIM-signedFix guide
- DLV-010SMTP plugin (WP Mail SMTP, FluentSMTP) credentials expired or app password revokedFix guide
- DLV-026Notification sending throttled by host's hourly email limitFix guide