WORDPRESS
WordPress Not Sending Email? Find the Error and Get Failure Alerts
Why WordPress email fails silently, how to read the exact wp_mail() error, fix the cause and get a Slack or webhook alert when email breaks again.
FREE WORDPRESS PLUGIN
Email Failure Monitor
See failed wp_mail() attempts with the exact mailer error, send a test email and get a Site Health warning when email stops sending.
- Install the free plugin
- Open Tools → Email Failure Monitor
- Send a test email and read the error
Sees only what wp_mail() reports: bounces and spam-folder placement are invisible to WordPress. Does not fix or resend email.

Short answer: when WordPress cannot hand an email to a mail server, wp_mail() returns false and fires the wp_mail_failed action with the mailer’s error. Nothing is shown to you or to the visitor by default, so password resets, order emails and form notifications can fail for days before anyone notices. To catch it, log those failures, send a test email that shows the real error, and get an alert somewhere other than email.
This guide explains why WordPress email fails silently, how to find the exact error, and what to put in place so you hear about the next failure before a customer does.
Find why WordPress email is failing
Applies when: A WordPress administrator suspects that password resets, order emails or form notifications are not being sent, and wants the exact cause and a way to hear about the next failure.
Quick answer
Get the mailer's own error first, from an SMTP plugin test, a wp_mail_failed log or a monitor. Match that error to a fix, confirm with a test and a real email, then route future failure alerts to a channel that does not depend on email.
What to do
-
Send a test email from your SMTP plugin or a monitor plugin, or log the wp_mail_failed action to the PHP error log. A symptom such as a missing form notification is not enough to choose a fix.
-
mail() errors need a real SMTP provider; connection errors need the right host, port and an open outbound port; authentication errors need a new password or API key; sender rejections need a verified From domain.
-
Send a test email and trigger a real one, such as a password reset for a test user. Then route failure alerts to Slack, Discord or a webhook rather than email.
What does the mailer error say?
All paths are listed below. Select a symptom to focus on the most relevant path.
PHP mail() has no working transport
The server has no usable sendmail, which is common on containers and some managed hosts. Install an SMTP plugin and send through your email host or a transactional provider.
The SMTP connection is blocked or misconfigured
Confirm host and port with your provider, try port 587 with TLS, and ask your web host whether outbound SMTP is blocked.
The SMTP credentials were rejected
Create a new app password or API key with your provider and update it in your SMTP plugin, then send a test email.
The mail server accepted the message
wp_mail() returned true, so WordPress handed the message off. Check spam folders, SPF and DKIM for the From domain, and your provider's delivery logs; WordPress cannot see bounces.
Did this help?
Why WordPress email fails without telling you
Every email WordPress sends, from core, WooCommerce or a form plugin, goes through wp_mail(). It builds a PHPMailer message and asks a transport to accept it. With no SMTP plugin, the transport is PHP’s mail() function, which depends on a local sendmail program on the server. With an SMTP plugin, it is a connection to your mail provider.
If the transport refuses the message, wp_mail() returns false and calls do_action( 'wp_mail_failed', $error ) with a WP_Error. Most plugins that send email ignore the return value. The visitor still sees “Thank you, your message was sent”, and the failure is lost.
The most common causes we see in real error messages:
- Could not instantiate mail function. PHP
mail()is disabled or the server has no working sendmail. Common on containers and some managed hosts. - SMTP Error: Could not connect to SMTP host. Wrong host or port, a firewall that blocks outbound port 25, 465 or 587, or a provider outage.
- SMTP Error: Could not authenticate. An expired password or API key, or an account that now requires an app password.
- Sender address rejected. The From address is not allowed by your provider or is not on a verified domain.
Step 1: Find the exact error
You cannot fix email from a symptom like “the contact form doesn’t arrive”. You need the mailer’s own error message. Three ways to get it:
- Your SMTP plugin’s test email. WP Mail SMTP, Easy WP SMTP and FluentSMTP all have a test screen that shows the SMTP conversation when a test fails.
- A small logging snippet. Add a must-use plugin that writes failures to the PHP error log:
add_action( 'wp_mail_failed', function ( $e ) { error_log( 'wp_mail failed: ' . $e->get_error_message() ); } );Then check your host’s error log after the next failure. - A monitor plugin that keeps a private list of recent failures inside WordPress, so you don’t need log access.
Be careful with full email logs. They store subjects and message bodies, which often contain password reset links, order details and personal data. For finding failures you only need the time, the recipient domain and the error.

Step 2: Fix the cause
Match the error to the fix:
- mail() errors: install an SMTP plugin and send through a real provider (your email host, or a transactional service). This is the most reliable setup for most sites.
- Connection errors: confirm the host and port with your provider, try 587 with TLS, and ask your web host whether outbound SMTP is blocked.
- Authentication errors: create a new app password or API key and update it in your SMTP plugin.
- Sender rejected: use a From address on a domain you have verified with the provider, and set up SPF and DKIM for that domain.
After the fix, send a test email and then trigger a real one, such as a password reset for a test user, to confirm that the path your visitors use works too.
Step 3: Get told about the next failure
Email breaks again: a password gets rotated, a provider changes limits, a host blocks a port. The problem with an email alert for a broken email system is obvious, so the alert has to go somewhere else. Your options:
- FluentSMTP (free) can send email sending error notifications to Slack, Telegram or Discord if you route your mail through it.
- WP Mail SMTP includes email failure alerts (Slack, Discord, Microsoft Teams, SMS, push notifications and webhooks) in its paid Pro plans, according to its feature page (read on 22 November 2026).
- A separate monitor that observes
wp_mail()no matter which SMTP plugin, or none, you use.
Whatever you pick, two details matter. First, throttling: a broken SMTP login can fail on every page load, and one alert per incident is far more useful than a hundred. Second, a recovery notice, so you know when it is working again without checking by hand.
How Email Failure Monitor fits in
We built ModelGain Email Failure Monitor for the gap above. The free plugin counts every wp_mail() attempt, keeps the last 50 failures with the time, recipient domain and a redacted error, and adds a “WordPress email is failing to send” warning to Site Health. It has a test email button that shows the exact error. It never stores subjects, bodies or full addresses. It works alongside WP Mail SMTP Lite, Easy WP SMTP or the default mail transport.
What it does not do: it cannot see bounces or spam-folder placement, because those happen after the mail server accepts the message. If another plugin replaces wp_mail() entirely, the monitor shows that on its coverage panel instead of guessing.
The optional Pro add-on sends an alert to Slack, Discord or any HTTPS webhook when email fails, at most once per incident window, plus a recovery notice and a test alert button. It costs $19.99 a year or $29.99 for a lifetime licence.
Checklist
- Send a test email and read the exact error, not just “it failed”.
- Send through a real SMTP provider instead of PHP
mail(). - Verify the From domain with SPF and DKIM.
- Log failures without storing message content.
- Route failure alerts to Slack, Discord or another channel that does not depend on email.