Listen to this article
16 minute listen
Narrated by an AI voice · 13 chapters
AI Overview
WordPress usually stops sending email because it relies on your server's unauthenticated PHP mail function, which hosts restrict and Gmail and Yahoo distrust. Install an SMTP plugin such as WP Mail SMTP, FluentSMTP or Post SMTP, connect a real mail service, send from your own domain, and add SPF, DKIM and DMARC records.
Key takeaways
- WordPress sends mail through wp_mail(), which defaults to unauthenticated PHP mail.
- An SMTP plugin connected to a real mail service fixes most delivery failures.
- Since February 2024, Gmail and Yahoo require SPF or DKIM, and DMARC for bulk senders.
- Contact Form 7 and WooCommerce need a From address on your own domain.
- Keep an email log, because failed emails never show an error to visitors.
Free WordPress plugin
Know which plugin update broke your site.
The free MyKavo plugin watches your site through every plugin, theme and core update, and tells you which one caused a change, before your visitors find it.
- Records every plugin, theme and WordPress update
- Checks your key pages right after each update and names the one that broke something
- One-click rollback when an update goes wrong, free
- Changes, alerts and before-and-after proof inside wp-admin
Free on WordPress.org · WordPress 6.2+ · PHP 7.4+ · The check after each update comes with every paid plan
Summarize with AI
Opens the assistant in a new tab with a link to this post.
On this page
If WordPress is not sending email, the cause is almost always the same: your site is handing messages to your web server's basic PHP mail function, and Gmail, Outlook or Yahoo either reject them or file them as spam. Password resets never arrive, contact form messages vanish, and WooCommerce order emails go missing, usually without a single error on screen.
The reliable fix is to send WordPress email through a real, authenticated mail service using SMTP, then prove your domain owns that mail with SPF, DKIM and DMARC records. This guide walks through why it happens, how to set up SMTP with the most popular plugins, the DNS records Gmail and Yahoo now require, and how to fix Contact Form 7 and WooCommerce emails specifically.
Running WordPress? The free MyKavo WordPress plugin checks your pages after every plugin, theme and core update and tells you exactly what changed, so a broken contact form doesn't go unnoticed for weeks. Start monitoring free.
Quick answer: how to fix WordPress not sending email#
- Send a test email to confirm the problem and check your spam folder first.
- Install an SMTP plugin such as WP Mail SMTP, FluentSMTP or Post SMTP.
- Connect a real mail provider (your email host, Google Workspace, Microsoft 365, or a transactional service) using its SMTP details or API.
- Set the From address to an email on your own domain, matching the account you connected.
- Add SPF, DKIM and DMARC records in your domain's DNS so receiving servers trust your mail.
- Check your form and WooCommerce email settings (recipients, From address, enabled notifications).
- Turn on an email log so you can see every message WordPress tried to send, and whether it failed.
Why WordPress stops sending email#
WordPress sends every email through one function: wp_mail(). Out of the box, wp_mail() uses the PHPMailer library to call PHP's built-in mail function, which passes the message to whatever mail program your server has.
That default setup has three weaknesses:
- No authentication. The message is not sent from a real mailbox with a username and password. Receiving servers see an anonymous message from a web server and treat it with suspicion.
- A mismatched sender. By default WordPress sends from
wordpress@yourdomain.com. If your domain's DNS doesn't authorize your web server to send for that domain, the message fails SPF and DMARC checks. - Hosts restrict it. Many hosts limit or disable PHP mail to stop spam from hacked sites. Some cloud providers block outbound port 25 entirely (Google Cloud, for example, blocks it by default), so the message never leaves the server.
The result is silent failure. wp_mail() can report success because your server accepted the message, even if Gmail later rejected it.
Gmail and Yahoo sender requirements (February 2024)#
Starting in February 2024, Google and Yahoo began enforcing stricter rules for anyone sending to their users. According to Google's email sender guidelines:
- All senders must authenticate mail with SPF or DKIM, have valid forward and reverse DNS for their sending servers, and use TLS.
- Bulk senders (Google defines these as sending close to 5,000 or more messages a day to personal Gmail accounts) must have SPF, DKIM and DMARC, align the From domain with SPF or DKIM, offer one-click unsubscribe for marketing mail, and keep reported spam rates low.
Yahoo announced matching requirements at the same time. Most WordPress sites aren't bulk senders, but the "all senders" rules still apply, and unauthenticated PHP mail fails them.
Step 1: Confirm the problem with a test#
Before you change anything, find out what is actually failing.
- Trigger a password reset for an account you control, or submit your own contact form.
- Check spam and promotions folders. "Not sending" is often "sent, but filtered."
- Test with two providers, such as Gmail and an address on your own domain. If only one receives it, it's a deliverability problem, not a sending problem.
- Look for errors in
debug.logif you have WordPress debug mode logging enabled.
If nothing arrives anywhere, the server likely can't send at all. If it lands in spam, your domain authentication is the problem. Both are fixed by the next two steps.
Step 2: Install an SMTP plugin#
An SMTP plugin replaces PHP mail with an authenticated connection to a real mail service. Every message then leaves through a server that is allowed to send for your domain.
| Plugin | Good fit for | Email log | Notes |
|---|---|---|---|
| WP Mail SMTP | Beginners, guided setup | Pro version | Setup wizard and built-in Email Test tool |
| FluentSMTP | Free, multiple connections | Free | Fallback connection if the primary fails |
| Post SMTP | Troubleshooting-heavy setups | Free | Detailed logs and connectivity test |
All three support generic SMTP plus API connections to common providers. Use only one SMTP plugin at a time, because two plugins overriding wp_mail() will conflict. If email broke right after you added a plugin, see our guide to finding a WordPress plugin conflict.
Choose where your email comes from#
The plugin is only the connector. Behind it you need a mail service: your domain mailbox (fine for forms and password resets), Google Workspace or Microsoft 365 (use OAuth or an app password, not your login password), or a transactional email service for stores sending receipts at volume. Transactional services usually connect by API, which avoids SMTP port problems entirely.
Fill in the SMTP settings#
If you use generic SMTP, your provider gives you these values:
| Setting | Typical value |
|---|---|
| SMTP host | Provided by your mail service, for example smtp.yourprovider.com |
| Port | 587 with TLS (STARTTLS), or 465 with SSL |
| Encryption | TLS for 587, SSL for 465 |
| Authentication | On |
| Username | Usually the full email address or an API username |
| Password | The mailbox password, app password or API key |
Avoid port 25. Many hosts block it for outgoing mail. If neither 587 nor 465 connects, ask your host whether outbound SMTP is blocked, or use an API connection instead.
Set the From address correctly#
In the plugin, set From Email to an address on your own domain (for example hello@yourdomain.com) and enable the option to force it for all emails, if available. It should match the account you authenticated with.
Never send as a Gmail or Yahoo address from your website. Those domains publish strict DMARC policies, so mail claiming to be from them but sent from your server will be rejected.
Send a test#
WP Mail SMTP has an Email Test tab under its Tools menu; FluentSMTP and Post SMTP have similar test screens. Send a test to a Gmail address, open it, and check the headers (in Gmail, "Show original"). You want to see SPF: PASS, DKIM: PASS and DMARC: PASS.
Try it on your site · free
Check your own page's meta tags
Title, description, canonical and robots - including an accidental noindex - in a few seconds.
Step 3: Add SPF, DKIM and DMARC records#
These three DNS records tell receiving servers that your mail is genuine. You add them wherever your domain's DNS is managed: your registrar, your host, or a DNS service such as Cloudflare.
| Record | What it does | Where the value comes from |
|---|---|---|
| SPF (TXT) | Lists the servers allowed to send for your domain | Your mail provider's documentation |
| DKIM (TXT or CNAME) | Adds a cryptographic signature to each message | Generated in your mail provider's dashboard |
DMARC (TXT at _dmarc) | Tells receivers what to do when SPF or DKIM fail, and where to send reports | You write it |
A few rules that trip people up:
- You can only have one SPF record per domain. If you use several services, combine them into one record with multiple
include:entries. - SPF has a 10 DNS lookup limit. Too many includes make SPF fail even when it looks correct.
- Start DMARC gently. A record like the one below monitors without blocking anything:
_dmarc.yourdomain.com TXT "v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com"
Once reports show your real mail passing, move to p=quarantine and later p=reject. DNS changes can take a few hours to spread.
Step 4: Fix Contact Form 7 not sending email#
Contact Form 7 uses wp_mail(), so the SMTP fix above solves most cases. If messages still go missing, open the form and check the Mail tab:
- To: the address that should receive submissions. Typos here are common.
- From: use an address on your site's domain, such as
[_site_title] <wordpress@yourdomain.com>or your real mailbox. Contact Form 7 shows a configuration warning if the sender address doesn't belong to the site's domain. - Additional headers: put the visitor's address in
Reply-To: [your-email], not in From. This lets you hit reply without breaking authentication. - Submit a test. An "error trying to send your message" notice means wp_mail() failed; your SMTP log will show why.
The same From and Reply-To logic applies to WPForms, Gravity Forms, Fluent Forms and Ninja Forms: check each form's notification settings.
Also check spam protection. A broken reCAPTCHA or Turnstile key can block submissions before any email is attempted.
Step 5: Fix WooCommerce emails not sending#
WooCommerce sends its emails through wp_mail() too, so SMTP is again the foundation. Then work through WooCommerce's own settings:
- Go to WooCommerce > Settings > Emails. Confirm each email you expect (New order, Processing order, Completed order) is enabled and has the right recipient.
- Check the sender options at the bottom of the same tab. The "From" address should be on your domain.
- Check the order status. Customer emails fire on status changes. If orders get stuck in "Pending payment" because a payment gateway callback failed, the processing email never sends. Our guide on WooCommerce checkout not working covers gateway problems.
- Check scheduled actions. Some emails and follow-ups run through background tasks. Look at WooCommerce > Status > Scheduled Actions for failed or long-pending actions, which often point to WP-Cron not running.
- Resend manually from the order screen using the order actions box, then watch the email log to confirm it went out.
If emails stopped right after an update, see our guide on how to update WooCommerce safely.
Step 6: Keep an email log#
An email log records every message WordPress tries to send: recipient, subject, time, and whether the mail service accepted it. Without a log you are guessing.
FluentSMTP and Post SMTP include a log in their free versions; WP Mail SMTP includes logging in its Pro version. Keep logs for a limited time and restrict who can view them, since they may contain customer details.
A log proves the message left your site, not that it reached the inbox, so check your provider's dashboard for bounces too.
Troubleshooting table#
| Symptom | Most likely cause | Fix |
|---|---|---|
| Nothing arrives anywhere | Server can't send (PHP mail disabled, port blocked) | SMTP plugin with port 587/465 or an API connection |
| Arrives in spam | Missing SPF, DKIM or DMARC | Add DNS records, align From domain |
| Gmail rejects, others work | Fails Google's sender requirements | Authenticate with SPF and DKIM, add DMARC |
| Form says "error sending" | wp_mail() failed | Check SMTP log for the exact error |
| Form says "sent" but nothing logged | CAPTCHA, security rule or form misconfiguration | Check form notifications and spam protection |
| WooCommerce emails missing | Email disabled, order status not changing, cron | Check Emails settings, order status, Scheduled Actions |
| Admin notices never arrive | Wrong address in Settings > General | Update the Administration Email Address |
| Mail stopped after a hack | Domain or server IP blocklisted | Clean the site (see our WordPress hacked guide), then request delisting |
How to catch broken forms automatically#
Email failures are silent. Nobody gets an error message when a contact form email disappears; you just stop hearing from leads and assume it was a quiet month. That is why it's worth watching the pages that produce email, not only the email itself.
MyKavo doesn't send test emails, but it watches the parts of the page that lead to them. You pick the pages that matter (contact, checkout, signup), MyKavo saves an approved baseline, then re-scans on a schedule (weekly on the Free plan, daily on paid plans). With monitored elements, you get an alert if a form or its submit button goes missing or hidden, and MyKavo also flags scripts added or removed, such as a CAPTCHA or payment script that stopped loading. The free MyKavo WordPress plugin checks your pages after every plugin, theme and core update and names the update when something broke, with before-and-after screenshots in wp-admin. Pair it with an SMTP log and a periodic test submission. Our website monitoring checklist lists what else to watch.
Frequently asked questions#
Frequently asked questions
Why is my WordPress site not sending emails?
Most often because WordPress uses your server's unauthenticated PHP mail function, which hosts restrict and Gmail, Outlook and Yahoo distrust. Install an SMTP plugin, connect a real mail service, and add SPF, DKIM and DMARC records to fix it.
How do I test if WordPress can send email?
Use the test feature in your SMTP plugin (WP Mail SMTP, FluentSMTP and Post SMTP all have one) or trigger a password reset. Send to a Gmail address and check the message headers for SPF, DKIM and DMARC passes.
Do I need an SMTP plugin for WordPress?
For reliable delivery, yes. WordPress has no built-in SMTP setting, so a plugin is the simplest way to route wp_mail() through an authenticated mail service.
Why is Contact Form 7 not sending email?
Usually the From address in the Mail tab isn't on your site's domain, or the server can't send mail at all. Set From to an address on your domain, put the visitor's email in Reply-To, and route mail through an SMTP plugin.
Why are WooCommerce order emails not sending?
Check that each email is enabled under WooCommerce > Settings > Emails, that orders actually change status (a failed payment callback can leave them pending), and that scheduled actions aren't failing. Then make sure WooCommerce mail goes through SMTP.
What port should I use for WordPress SMTP?
Use port 587 with TLS or port 465 with SSL. Avoid port 25, which many hosts and cloud providers block for outgoing mail. If both are blocked, use an SMTP plugin's API connection to your mail provider instead.
Will WordPress emails go to spam without SPF and DKIM?
Very likely. Since February 2024, Google and Yahoo require all senders to authenticate with SPF or DKIM, and bulk senders need SPF, DKIM and DMARC. Unauthenticated mail is often filtered or rejected.
The bottom line#
WordPress email fails because PHP mail is unauthenticated and receiving servers no longer trust it. Route mail through an SMTP plugin connected to a real provider, send from an address on your own domain, add SPF, DKIM and DMARC, and keep an email log so you can prove what was sent. Then keep an eye on the forms and checkout pages that send it, because email problems never announce themselves.
Don't find out from a lost lead. Start monitoring your site free with MyKavo and install the free MyKavo WordPress plugin, no card needed.
Write for MyKavo
Know website monitoring, WordPress or SEO from real work? Pitch us a guide. You keep a byline with one link to your site. Read the guidelines
Get alerted when your site breaks. Free, no card.
Start free