Skip to main content

WordPress Not Sending Email? How to Fix Contact Form and Notification Emails

A contact form that looks fine but never delivers is one of the costliest quiet failures a business site can have. Visitors see a thank-you message, you see nothing, and the lead is gone. The fix is rarely complicated once you know where the message stops.

A row of glass envelopes stops at a dark wall, while a second route of light arcs over it to a tray where envelopes arrive glowing green

Quick answer

WordPress sends mail through the web server's own mail program by default, with no authentication. Many inboxes now reject or spam-file that mail. Send a test to find where it stops, set the form's From address to an address on your own domain, route mail through SMTP with a plugin, then publish SPF, DKIM and DMARC records for your domain.

The usual discovery goes like this. A customer calls to ask why nobody answered the quote request they sent three weeks ago. You check the inbox, the spam folder, the form settings. Nothing. The form has been showing "Thank you, we'll be in touch" to every visitor while the messages went nowhere.

That is the nature of this problem. The page works, the button works, and WordPress reports success, because from its point of view it did hand the message off. What happens after the handoff is where things go wrong.

Why WordPress Email Fails

Every email WordPress sends goes through one function, wp_mail(). Contact forms, password resets, new user notices and WooCommerce order emails all use it. Out of the box, wp_mail() passes the message to PHP's built-in mail() function, which hands it to whatever mail program runs on your web server.

That server-side mail program usually sends the message with no login. It also sends from a server that your domain's DNS records may not mention at all. Gmail and Yahoo both publish sender requirements that call for SPF or DKIM authentication. Mail that fails those checks gets rejected or filtered. Microsoft's Outlook.com applies similar checks.

Four causes cover nearly every case we see:

  • No authentication. The message leaves an unauthenticated server, so the receiving provider has no reason to trust it.
  • A spoofed From address. The form sends "From" the visitor's own Gmail address. Your server is not allowed to send for gmail.com, so the message fails the check.
  • The host blocks or limits outgoing mail. Some hosts cap hourly sending or switch off mail() entirely to fight spam.
  • Misrouted local delivery. On cPanel servers, mail for your own domain can be delivered to a mailbox on the web server instead of to your real inbox. More on that below.

Find Where the Message Stops

Before changing settings, find out which of three things is true: WordPress never tried to send, it sent but the message was rejected, or it was delivered somewhere you are not looking.

  1. Check the form's own settings. In Contact Form 7, open the form and look at the Mail tab. In WPForms or Gravity Forms, look at the form's Notifications. Confirm the "To" address is one you actually read. Many forms default to the Administration Email Address under Settings, General, which may be an old address.
  2. Log what WordPress sends. Install a mail logging plugin, or the test tool that comes with an SMTP plugin. Submit the form. If nothing appears in the log, the form plugin never called wp_mail(), so the problem is in the form configuration.
  3. Send a test to an outside address. Use an address on a different provider from your domain. If it arrives, open the message headers (in Gmail, "Show original"), then read the SPF, DKIM and DMARC results. Anything other than "pass" tells you what to fix.
  4. Check spam, then check quarantine. Look in the spam folder of the receiving inbox. On Microsoft 365 or Google Workspace, an administrator can also check the quarantine or the email log search, which shows messages that never reached any folder.

If the log shows the message was sent but it never arrived anywhere, the receiving provider rejected it. Your server's mail log, which your host can read for you, will show the rejection reason.

Fix the From Address

This is the cheapest fix, and it solves a surprising share of cases on its own.

A contact form should send From an address on your own domain, such as forms@yourbusiness.com, and put the visitor's address in the Reply-To field. When you hit reply, your mail program still answers the visitor. The difference is that the message now claims to come from a domain your DNS records can vouch for.

In Contact Form 7, set the From field on the Mail tab to your domain address, then add Reply-To: [your-email] in the Additional Headers box. In WPForms or Gravity Forms, each notification has its own From Email field and a separate Reply-To field. If you leave the From field blank, WordPress uses wordpress@yourdomain, which is better than a visitor's address but still fails if the server itself is not authorized.

Send Through SMTP

The lasting fix is to stop using the web server's mail program and send through an authenticated mail server instead. WordPress has no settings screen for this, so you add an SMTP plugin. WP Mail SMTP, FluentSMTP and Post SMTP are the widely used options. Each one reroutes wp_mail(), so every plugin on the site benefits without further changes.

You then pick what the plugin sends through:

Option Good fit Watch out for
Your business mailbox (Google Workspace, Microsoft 365, host email) Low-volume sites: contact forms, password resets Sending limits per mailbox; Google and Microsoft may require an OAuth connection or an app password rather than your normal sign-in
Transactional service (Postmark, Amazon SES, Mailgun, SendGrid, Brevo) Stores and busy sites, order emails, anything you need logged You must verify your domain with the service before it will send
Host's SMTP server Quick fix when the mailbox lives at the same host Shares a sending reputation with other customers on the server

Use port 587 with TLS, or 465 with SSL, as the provider specifies. Some hosts block outgoing connections on port 25, so a plugin set to 25 can fail silently. After saving, send the plugin's test email to an outside address and read the headers again.

For WooCommerce stores the stakes are higher. Order confirmations, shipping notices and password resets all ride on the same path. A transactional service with a delivery log is worth the small monthly cost, because it lets you answer "did the customer get their receipt?" with evidence.

Add SPF, DKIM and DMARC

SMTP gets the message onto an authenticated server. DNS records tell the receiving provider that this server is allowed to send for your domain. You add them wherever your domain's DNS is managed, which may be your registrar, your host or a service like Cloudflare.

  • SPF is one TXT record listing the servers allowed to send for your domain. A domain gets exactly one SPF record. If you send from Google Workspace and a transactional service, both go in the same record.
  • DKIM is a cryptographic signature. Your mail provider generates a key and gives you a DNS record to publish. Each service you send through needs its own DKIM record.
  • DMARC tells receivers what to do when SPF or DKIM fails, and where to send reports. Start with a policy of p=none so you can read the reports before tightening it.

The mistake we see most often is a second SPF record added for a new service. Two SPF records make the check fail outright, which can break mail that worked fine before. Merge them into one.

The cPanel Email Routing Trap

This one catches sites on cPanel hosting whose real mailboxes live at Google Workspace or Microsoft 365.

If the cPanel account still thinks it handles mail for your domain, any message the website sends to you@yourbusiness.com is delivered to a local mailbox on the web server. It never goes out to the internet, so it never reaches the inbox you check. Everything else works, which makes the problem hard to spot: mail to Gmail addresses arrives, mail to your own domain vanishes.

The fix takes a minute. In cPanel, open Email Routing, select your domain, then choose Remote Mail Exchanger. Messages addressed to your own domain will then follow your MX records like any other mail.

Keep It Working

Email breaks quietly, so the habit that matters is checking it on purpose.

  • Submit every form on the site after each round of plugin updates, and confirm the message arrives. Our WordPress maintenance checklist puts this in the monthly pass.
  • Keep the SMTP plugin's log switched on, and look at it when a customer says they never heard back.
  • Turn on entry storage in your form plugin, or add one that stores entries, so a delivery failure never costs you the message itself.
  • Read your DMARC reports for a few weeks after any change to where mail is sent from.

WordPress Email FAQ

Why is my WordPress contact form not sending email?

Usually because WordPress hands the message to the web server's own mail program, which sends it without the authentication that Gmail, Outlook and other providers now check. The message is either rejected or filtered as spam. A second common cause is a form set to send From the visitor's address, which your own domain's records cannot vouch for.

How do I test whether WordPress can send email?

Install a mail logging or test plugin, such as Check and Log Email, or use the test tool built into an SMTP plugin like WP Mail SMTP or FluentSMTP. Send a test to an address on a different provider from your domain, then open the message headers to see whether SPF, DKIM and DMARC passed.

Do I need an SMTP plugin for WordPress?

For a business site, yes. WordPress core has no settings screen for outgoing mail, so an SMTP plugin is the usual way to route messages through an authenticated mail server or a transactional email service. It also gives you a test button and, in most cases, a log of what was sent.

Why do WordPress emails go to spam?

Spam filters look for proof that the sending server is allowed to send for your domain. Without SPF and DKIM records that cover the server doing the sending, plus a From address on your own domain, the message looks like it could be forged. Fixing authentication solves most spam-folder problems.

Will fixing email lose my old form submissions?

No. Changing how mail is sent does not touch stored entries. Whether old submissions exist at all depends on your form plugin: Gravity Forms stores entries by default, Contact Form 7 does not unless you add a plugin such as Flamingo, while WPForms Lite does not keep entries you can view in the dashboard.

If You Would Rather Hand It Off

Mail problems sit across three systems at once: the website, the mail provider and the domain's DNS. That is why they bounce between support desks. Our WordPress care plans include small fixes like this, and every hosting plan comes with email hosting on your own domain.

Book a free 30-minute call and we will trace where your site's email stops.

Related reading: The WordPress Maintenance Checklist • Can't Log In to WordPress Admin? • Vortex Media Care Plans