On this page
- How do I fix WordPress not sending emails?
- What WordPress actually does when it “sends” an email
- Why the message dies on the way
- SPF, DKIM and DMARC in plain terms
- WordPress SMTP setup with WP Mail SMTP
- Why WordPress is not sending emails even when the form says “sent”
- Getting help when it still won’t deliver
- Frequently asked questions
WordPress not sending emails almost always means the site handed its message to the server’s basic PHP mail function, and either the host or the receiving inbox threw it away. Hosts restrict that function, and Gmail and Outlook distrust mail that carries no authentication. The usual fix is routing mail through an authenticated SMTP service using a plugin such as WP Mail SMTP.
If this started right after a hosting move, read our guide on migrating email to a new host without losing mail too, because DNS records are the first thing to get left behind.
How do I fix WordPress not sending emails?
Work through these in order. They cover most of what we see.
- Install an SMTP plugin and connect a real mailer. Brevo, Postmark, Mailgun, SendGrid and Gmail SMTP are all available in the free version of WP Mail SMTP.
- Set the From address to an address on your own domain, and turn on the Force From Email option.
- Send a test from the plugin’s Tools » Email Test screen.
- Add the SPF and DKIM records your mailer gives you at your DNS host.
- Submit your actual contact form, then check the inbox and the spam folder.
If the test email arrives, you’re most of the way there. If it doesn’t, the sections below show where to look.

What WordPress actually does when it “sends” an email
Out of the box, WordPress calls a function named wp_mail(). Reading the core source, that function builds a PHPMailer object, tells it to use PHP’s built-in mail(), and calls send(). Nothing in that chain logs into a mail provider or proves who you are.
When no From address is set, core builds one from the word “wordpress@” plus your site’s hostname, with a leading www. removed. The sender name defaults to “WordPress”. A plugin can change both with the wp_mail_from and wp_mail_from_name filters, but many don’t.
Here’s the part that trips people up. wp_mail() returns true when PHPMailer accepts the message. The core source comment says plainly that a true result does not mean the recipient got it. So a contact form can show “Thanks, your message was sent” while the email is already dead.
When PHPMailer throws an exception, core fires the wp_mail_failed action with a WP_Error. That hook (available since WordPress 4.4.0) is what logging plugins and developers listen to. If you have nothing listening, failures vanish quietly.
Why the message dies on the way
WP Mail SMTP, which sells the fix, publishes a list of causes. Hostinger’s guide overlaps with it. Both are vendors, so read the framing with that in mind, but the causes themselves match what we run into:
- The host limits or blocks PHP mail() to reduce spam, so the email never leaves the server.
- mail() adds no authentication, so receivers can’t tell your mail from a forgery.
- The From address is generic or doesn’t match the sending domain.
- The server’s IP is blacklisted or has poor reputation, which is common on shared hosting.
- A plugin uses the admin email as the sender, or the recipient address is simply wrong.
- SMTP is set up with the wrong port, bad DNS, or a Cloudflare proxy in the way.
- SPF, DKIM or DMARC records are missing, and Gmail rejects or filters the result.
Neither vendor gives failure rates, and we haven’t seen an independent study measuring how often PHP mail() lands in spam. Nobody publishes a list of which hosts do this, so test instead of guessing.

SPF, DKIM and DMARC in plain terms
SPF is a DNS record listing which servers may send mail for your domain. Google’s documentation says it helps stop outgoing mail being marked as spam, that the record must begin with v=spf1, and that you should list every service sending for the domain. Its Workspace-only example is v=spf1 include:_spf.google.com ~all. Changes can take up to 48 hours to work.
DKIM is a signature. Your mail server signs each message with a private key, and receivers check it against a public key in a DNS TXT record named selector._domainkey. Google recommends a 2048-bit key where your DNS host supports it, and 1024-bit otherwise. To verify, send a message to a Gmail address and read the Authentication-Results header.
DMARC ties the two together and says what to do when checks fail. A policy of “none” is allowed as a starting point.
Do the big providers actually force this on a small site? Not directly, on paper. Both rules target bulk senders:
| Provider | Who it applies to | What it requires |
|---|---|---|
| Google (Gmail) | More than 5,000 messages a day to Gmail accounts | SPF, DKIM, DMARC (p=none is fine), aligned From domain, TLS, spam rate under 0.30%, one-click unsubscribe for marketing mail. Effective February 1, 2024. |
| Microsoft (Outlook.com) | More than 5,000 emails a day to hotmail.com, live.com and outlook.com | SPF and DKIM pass, DMARC at least p=none and aligned. Non-compliant mail goes to Junk after May 5, 2025. |
Microsoft’s own page says outright rejection (error 550 5.7.515) has no date yet. Some third-party summaries claimed rejection began in May 2025, but Microsoft’s page is the one to trust. And a shop sending 40 emails a day isn’t named in either rule. Vendor articles say receivers still filter small unauthenticated senders, but neither Google nor Microsoft says that in the pages we read. Set the records up anyway. It costs you an afternoon at most.
WordPress SMTP setup with WP Mail SMTP
WP Mail SMTP reconfigures wp_mail() to send through SMTP instead of PHP’s mail(). The WordPress.org listing shows more than 4 million active installs, version 4.10.5 (updated November 24, 2026), and a requirement of WordPress 5.5 and PHP 7.4 or higher. If your site runs an older PHP, see our walkthrough on updating PHP on WordPress safely first. All of those figures come from the plugin’s own page.
The sequence that works:
- Install and activate the plugin, then run its setup wizard.
- Pick a mailer. The free tier covers Gmail SMTP, Mailgun, Postmark, SendGrid and Brevo. Amazon SES, Zoho Mail and the Microsoft one-click setup are Pro-only, as are email logs and alerts.
- Enter your API key or credentials, set a From address on your domain, and enable Force From Email.
- Send the test from Tools » Email Test.
- Add the DNS records the mailer asks for, then wait for them to propagate.
If you go the plain SMTP route, Hostinger gives port 465 for SSL and 587 for TLS and recommends TLS. Some hosts block SMTP ports altogether. WP Mail SMTP says its API-based mailers still work in that case, which is why we lean toward an API mailer when a host is being difficult.
Our opinion: use a dedicated transactional mailer rather than a personal mailbox. Gmail SMTP works for a low-volume site, but we won’t quote its sending limits, because the pages we reviewed don’t state them. Check your provider’s current policy before relying on it.
Why WordPress is not sending emails even when the form says “sent”
Contact form not sending email is the symptom most owners notice first, and the form plugin is usually innocent. It reported success because wp_mail() returned true. Look at three things on the form itself: the recipient address, the From address, and whether the From address belongs to your domain. A form that sends “from” the visitor’s Gmail address will often fail authentication, because your server isn’t allowed to send as Gmail. Use your own domain as the sender and put the visitor’s address in Reply-To.
WooCommerce order and password-reset emails travel the same wp_mail() route, so one fix covers all of them.
Then add visibility. A logging plugin, or a short snippet on the wp_mail_failed action, tells you when something breaks. We’ve watched a backup plugin quietly disconnect and take the downtime alerts down with it, and the site turned out to be hacked weeks later. Email is the same kind of silent failure. Send yourself a test every month or so, and don’t assume it’s still working because nobody complained.
Getting help when it still won’t deliver
Some cases drag on: DNS records spread across two providers, a Cloudflare proxy in the way, a host that blocks everything, or a theme that overrides the sender. If you’ve worked through the steps above and mail still isn’t arriving, our Emergency Dev Hours are built for this kind of fix. It’s $99 per hour with no retainer, and we’ll trace where the message stops. If you’d rather not think about it again, Website Care and Maintenance keeps plugins current and the site monitored.
Frequently asked questions
What does wp_mail() returning true actually mean?
It means PHPMailer accepted the message for sending. WordPress core states that this does not guarantee the recipient received it, so a “success” result says nothing about the inbox.
Does my host block PHP mail() or SMTP ports?
Some do, but no one publishes a reliable list of which hosts or what limits. The quickest way to know is to send a test through an SMTP plugin, and switch to an API-based mailer if ports are blocked.
Why do my emails come from wordpress@mydomain.com?
That is the default WordPress uses when nothing else sets a From address. You can change it with the wp_mail_from filter, or by setting a From address in your SMTP plugin and enabling Force From Email.
Do I need SPF, DKIM and DMARC on a small site?
Google’s and Microsoft’s formal rules apply to senders over 5,000 messages a day. Small sites still benefit, because unauthenticated mail is more likely to be filtered, so we recommend setting all three up.
How long do DNS changes take?
Google’s SPF and DKIM guides say records can take up to 48 hours to start working. Many take effect sooner, but don’t judge a result immediately after saving.
Sources
- WordPress core: wp-includes/pluggable.php (wp_mail) (trunk, read November 27, 2026)
- Google Workspace Admin Help: Email sender guidelines (read November 27, 2026)
- Microsoft Tech Community: Outlook’s new requirements for high-volume senders (April 2, 2025, updated April 29, 2025)
- Google Workspace Admin Help: Set up SPF (updated November 10, 2026)
- Google Workspace Admin Help: Set up DKIM (updated November 10, 2026)
- WordPress.org Plugin Directory: WP Mail SMTP by WPForms (updated November 24, 2026, vendor-reported)
- WP Mail SMTP: How to Easily Fix the WordPress Not Sending Email Issue in 2026 (updated July 24, 2026, vendor-reported)
- Hostinger: How to fix WordPress not sending emails (last updated July 8, 2024, vendor-reported)

