By default, WordPress hands its email to the server, and what happens next is up to the host. Some hosts pass the mail to a relay: Kinsta and WP Engine document MailChannels for WordPress mail. Others give it no route out, or send it without a signature for your domain. When that path fails, password resets, contact form submissions and WooCommerce order confirmations can go missing, and the first sign may be a customer’s complaint.
The fix is to send the mail around the host: through an external email service, over SMTP or an API, with a mailer plugin making the connection. Then publish SPF, DKIM, and DMARC records so receivers can check that the mail is yours.
This guide covers A transactional email is the automated message a WordPress site sends in response to a single user action – a password reset, an order confirmation, a form receipt – addressed to the user who triggered it. Read full reference →: the messages WordPress generates automatically (password resets, form notifications, order confirmations, admin alerts). Marketing email (newsletters, drip campaigns, broadcast sends) runs on separate infrastructure; products like MailPoet, Mailchimp, ConvertKit, and MailerLite handle that work, and the boundary is real: setting up transactional email does not give a site newsletter capability, and configuring a newsletter platform does not fix wp_mail(). The transactional email reference covers the boundary, including the legal carve-out that makes transactional and marketing email regulated differently.
Why WordPress email breaks
WordPress sends all its email through a single PHP function: wp_mail(), defined in wp-includes/pluggable.php. Under the hood, wp_mail() uses the PHPMailer library (bundled with WordPress core since the early 2.x releases; upgraded to PHPMailer 6 in WordPress 5.5) to compose and dispatch messages. By default, PHPMailer calls PHP’s native mail() function, which hands the message to whatever mail transfer agent the server’s sendmail_path directive points to, typically sendmail or Postfix on Linux hosts. The How email works reference covers the full five-stage delivery chain.
This default path can fail in three ways.
The first is a host that blocks outbound mail. Cloud providers restrict outbound SMTP, each in its own way.
DigitalOcean blocks ports 25, 465 and 587 on every Droplet by default, so a site there needs a service that takes mail over an HTTP API or another port.
AWS EC2 blocks port 25 to public addresses by default and takes requests to remove the restriction.
Google Cloud blocks external traffic on port 25, with an exception for some projects, and places no restriction on 465 or 587.
Azure blocks port 25 on virtual machines except under a standard Enterprise Agreement or MCA-E subscription, and leaves port 587 open to authenticated relay services on every subscription. Per-host port status lives on each host’s email page.
A server can also have no mail program at all. PHP’s mail() runs the program named in sendmail_path. If it is missing, mail() returns false, as it did on PHP 8.3.6 in a test on 2026-11-25 with sendmail_path pointing at a file that does not exist. The official
WordPress Docker image, for one, has no mail program in its build file. WordPress responds to the failure by firing wp_mail_failed and returning false from wp_mail(), and core writes no log of either. The site itself keeps working, so the failure is easy to miss.
And when mail does leave the server, it can leave without authentication for your domain.
DreamHost says email a website sends without SMTP is not DKIM signed.
Google says that a message to a personal Gmail account might be marked as spam or rejected if it has neither SPF nor DKIM. Mail can also pass a check for the host’s domain and still fail DMARC for yours, and
each receiver decides what to do with a message that fails.
Whether the default path is enough depends on the host. Kinsta includes
transactional email through MailChannels on every plan, with a daily limit by plan, and supports DKIM. It says the service does not currently support DMARC alignment, and it recommends a third-party SMTP service to sites that need DMARC compliance.
WP Engine says normal email such as password resets will not typically have any issues sending, caps the hourly volume at a number it does not publish, and suggests a third-party email host for anything more. On WordPress.com, the pipeline is Automattic’s; the WordPress.com vs WordPress.org email reference covers who owns it on each platform. An external service takes the host’s mail path out of the question.
The fix: external service + mailer plugin
The solution has two parts:
- An external email service that accepts messages from the WordPress site and delivers them to recipients. These services maintain their own sending infrastructure: dedicated IPs, sender reputation built on volume and compliance history, and authentication already configured.
- A mailer plugin that connects WordPress to that service. The plugin hooks into
wp_mail(), replacing the default PHPMailer transport with either an SMTP connection or the service’s HTTP API.
For most sites that is the right two-part solution. Sites that would rather not run an SMTP plugin (developer-control preference, plugin-sprawl avoidance, or a host whose bundled relay already delivers) can take the minority path; nanoPost’s WordPress without the plugin hub covers the no-plugin slices of this and four other jobs WordPress sites typically install a plugin for.
Choosing an email service
For a site that just needs email to work, Brevo’s free tier is the lowest-friction starting point. It allows 300 emails per day, more than enough for most WordPress sites, requires no credit card, and connects through both SMTP and API. SMTP2GO provides 1,000 emails per month on its free plan with a clean dashboard and solid documentation. Mailgun offers 1,000 per month on its flex plan, though Mailgun’s pricing page rewards careful reading beyond the first month.
For sites with higher volume or stricter deliverability requirements, nanoPost maintains a curated comparison of SMTP email services with per-provider details on pricing, free tiers, API support, and WordPress integration. The free SMTP servers roundup compares free-tier ceilings specifically.
If you already use Google Workspace or Microsoft 365
A common operator question: the site’s domain is already on Workspace or Microsoft 365 for mailboxes; can WordPress just send through that, instead of signing up for a separate transactional provider? Sometimes. The constraints are sharp.
Google Workspace. SMTP relay through smtp.gmail.com caps at 2,000 messages per 24 hours on a rolling window for a paid account, per Google’s
Workspace sending limits documentation. A Workspace trial and free Gmail both get 500, and Google raises a new Workspace account to 2,000 only after the domain has cumulatively paid $100 USD. Beyond the cap, Gmail returns transient failures regardless of authentication. Workspace mailboxes also rewrite the From address in some configurations, which breaks DMARC alignment for senders that depend on d=example.com. For sites under the cap whose mail is genuinely from the Workspace user (a small-business owner’s notifications, an agency’s contact form to a single address), the relay is reasonable; for sites sending on behalf of the domain at higher volume (WooCommerce stores, multi-user form submissions), a dedicated transactional provider is the right answer. The connection details, the App Password vs OAuth credential choice, and the silent-failure pattern after a routine password rotation live in the canonical WordPress SMTP with Google Workspace walkthrough.
Microsoft 365 and Outlook.com. Microsoft is retiring SMTP AUTH Basic Authentication in Exchange Online. Its
updated deprecation timeline leaves it unchanged until the end of December 2026, then turns it off by default on existing tenants and makes it unavailable by default on tenants created after that.
Microsoft Learn says SMTP AUTH is disabled for organisations created after January 2020 but can be enabled per mailbox. Sites still routing through Microsoft 365 should plan a migration to a dedicated provider, or to a mailer plugin’s OAuth integration, before then; WordPress SMTP with Microsoft 365 covers the current connection details and the OAuth-via-plugin path that survives the cutoff.
Choosing a mailer plugin
The mailer plugin replaces the default wp_mail() transport: instead of handing messages to PHP’s mail() function, the plugin sends them over SMTP or via the service’s API endpoint.
WP Mail SMTP is the most widely installed and the easiest first choice for a site that wants setup done in under five minutes. FluentSMTP is the better pick for operators uncomfortable with Awesome Motive’s upselling; the free version covers logging and routing the WP Mail SMTP free version does not. Post SMTP is built around telling the operator when something is wrong: when a send fails, it can alert a Chrome extension, Slack, Pushover, or a webhook, and the log has a resend button, all in the free tier. Post SMTP also has its own phone app for failure alerts. Twilio SMS and Microsoft Teams alerts are Pro. All three connect to every major email service. The best WordPress SMTP plugins roundup covers the field in depth, including the four lesser plugins and the per-tier feature splits.
Once configured, the plugin’s effect is global: every call to wp_mail() routes through the external service automatically: WordPress core, WooCommerce, contact form plugins, any plugin that uses the standard WordPress email function. Plugins that bypass wp_mail() and call PHP’s mail() directly remain unaffected; the transactional email reference covers how to spot that bypass.
For operators who prefer to skip the plugin entirely and configure the SMTP connection in code, WordPress SMTP without a plugin walks through the phpmailer_init action hook with credentials in wp-config.php. It works, but foregoes the logging and diagnostic features that a dedicated plugin provides.
Authenticating your sending domain (SPF, DKIM, DMARC)
Connecting to an external service takes mail off the host’s path; authenticating the sending domain lets receivers check that the mail is yours. The WordPress SPF, DKIM, and DMARC setup checklist covers where each record comes from and where it goes at the registrar, per mailer plugin and per sending provider, and the Gmail and Yahoo bulk-sender rules for WordPress pillar covers whether the site is on the affected path in the first place. For newsletter and CRM stacks that also have to satisfy the RFC 8058 one-click unsubscribe requirement, where the List-Unsubscribe header comes from in WordPress covers which plugin adds it and how to verify.
Contact forms and the database safeguard
Contact form plugins (Contact Form 7, WPForms, Gravity Forms, Fluent Forms, Ninja Forms) all send submissions through wp_mail(), so the external service and mailer plugin handle their delivery automatically. The one safeguard worth adding: store submissions in the WordPress database, not only in email. If email delivery fails for any reason (a misconfigured service, an expired API key, a DNS change), the submissions remain accessible. Some contact form plugins store submissions natively. For Contact Form 7, the
Flamingo plugin adds this capability.
Two configuration details on contact forms are worth checking. First, plugins that set the message From: header to the visitor’s email address (taken from a form field) break DKIM alignment: the signature’s d= is the site’s domain, the From-header is a gmail.com address. The fix is to set From to a fixed address on the site’s domain and put the visitor’s address in Reply-To; the contact form reply-to guide covers the configuration per plugin. Second, sites that route Contact Form 7 submissions to multiple recipients can do it without a plugin via cc/bcc headers and pipe-separated dropdown routing; the multi-address routing guide covers the mechanics.
Verifying the setup
All three mailer plugins named above include a “Send Test Email” function in their settings. Use it. When the test message arrives, check the headers. Look for spf=pass and dkim=pass in the Authentication-Results header, and dmarc=pass once DMARC is published. If any of the three shows fail or none, the DNS records need attention before going further.
For a more thorough check, the WordPress email test suite walks through testing every category of WordPress-generated email: password resets, new-user notifications, WooCommerce order emails, and form submissions. Running even two or three of these tests confirms that the mailer plugin is intercepting wp_mail() correctly across different calling contexts. Check that WordPress can send emails is the shorter version: a single test that proves the core path works.
Three command-line and sandbox tools cover the cases the in-plugin test does not.
- swaks sends an SMTP message from the command line with the full session printed to stdout. A send that succeeds with
--authproves the port is open, the credentials authenticate, and the server accepts the message, independently of WordPress, PHP, and the mailer plugin. If swaks succeeds but the plugin fails while using the same host and settings, investigate the plugin, PHP and WordPress mailer configuration. If swaks fails too, inspect the command and settings, the network path, and the relay’s response. Swaks cannot test a plugin that sends through a provider’s HTTP API. - Mailtrap for WordPress captures outbound mail in a sandbox inbox instead of delivering it. Useful on staging environments where real sends would alarm real users, and during initial setup where the operator wants to inspect headers and bodies before flipping to a production relay.
- Inbox placement testing answers the question the in-plugin test cannot: did the message reach the inbox, or the spam folder, or the void. Mail-Tester is the standard tool; the guide covers reading its output and acting on the score.
When things break
The diagnostic ladder, fastest to most involved: misconfigured admin settings, host blocking outbound SMTP, SMTP plugin misconfiguration, host sending limits, DNS authentication failure. Troubleshoot WordPress email walks the ladder in full, with the common SMTP error codes (421, 535, 550, 552, 554) mapped to where the fix lives, plus the captured-error pattern that uses the wp_mail_failed action hook to surface the underlying PHPMailer exception.
When a captured SMTP session is in hand and the response codes are not self-explanatory, How to read an SMTP session log decodes the EHLO/STARTTLS/AUTH/MAIL FROM/RCPT TO/DATA sequence and identifies the exact line where the failure begins. The SMTP field manual catalogues bounce codes from the major mailbox providers and filters when the receiving server’s response text needs interpretation.
For password reset emails specifically (the highest-volume failure mode WordPress operators report), see Users not receiving password reset emails. For form-to-Gmail-but-not-Office-365 (a recurring contact-form pattern), see Form not sending to Gmail but sending to Office 365.
Going beyond the basics
With the foundation in place (external service, mailer plugin, authenticated domain, verified delivery), four directions are worth knowing about even if most sites never need them.
Logging. A site that wants to know whether a specific email actually left WordPress needs a log. WP Mail SMTP gates this behind Pro. FluentSMTP and Post SMTP include logging in their free tiers. Standalone options include Check & Log Email and Log Emails. Check & Log Email records on the wp_mail filter, which WP Mail SMTP, FluentSMTP and Post SMTP all apply. Log Emails records at phpmailer_init, so it records nothing under Post SMTP’s default mailer mode. Leave Check & Log Email’s “Forward Email” setting off under Post SMTP: in 2.0.19 the pair loop until the request fails, and the original message is not sent.
Queueing. Every wp_mail() call blocks the PHP process until the SMTP handshake completes. On a WooCommerce site with high order volume, that per-order latency adds up. WordPress email queues covers when async sending matters and the plugins that address it.
Webhooks. External relays expose delivery events (bounces, complaints, deliveries) via webhooks that can connect back into WordPress for logging, retry logic, or list hygiene. Email service webhooks and WordPress covers the integration patterns and the verification step that prevents spoofed webhook calls.
The full WordPress email surface. WordPress core sends transactional email from four locations; WooCommerce adds a larger set; every plugin in the ecosystem can add more. Every email WordPress sends (and how to control each one) catalogues the hooks and filters that override sender, subject, and body per email type. For the WooCommerce subset specifically, see WooCommerce transactional email.
Reference links
- SMTP email services compared
- Best WordPress SMTP plugins (WP Mail SMTP vs FluentSMTP vs Post SMTP)
- DNS for WordPress email: SPF, DKIM, DMARC, and the alignment problem
- Parse DMARC aggregate reports
- WordPress email troubleshooting
- WordPress SMTP without a plugin
- Gmail App Passwords for WordPress SMTP
- WordPress email test suite
- Transactional email and WordPress
- How email works: a WordPress operator’s reference
Provider details (free-tier allowances, port-blocking policies, sending limits) and the Microsoft 365 SMTP AUTH timeline verified June 2026. Deliverability section shortened 2026-09-03 to a pointer to the dedicated SPF/DKIM/DMARC checklist and bulk-sender pillar.
Corrections
- 2026-11-26: an earlier version said Check & Log Email and Log Emails record every send whatever mailer plugin is configured. Log Emails records nothing under Post SMTP’s default mailer mode.
- 2026-11-26: an earlier version said, without a source, that most WordPress sites cannot send email reliably by default because most hosts lack a mail server or block outbound mail, that many managed hosts have no mail server, that hosts typically send with no SPF, DKIM or DMARC, and that Gmail, Outlook and Yahoo then put the mail in spam or drop it. It also said Kinsta’s relay has proper authentication, when Kinsta says it does not currently support DMARC alignment, that Azure blocks port 25 with no exception, and that DigitalOcean leaves API sending as the only option. Claims that any reputable external service delivers more reliably, that authentication gets mail past the spam folder, and that contact form settings cause the most deliverability damage had no source either.
- 2026-11-25: an earlier version said swaks isolates whether a failed test send is the relay’s fault or the WordPress configuration’s. A failed swaks run can also mean wrong settings or a blocked port, and swaks does not test a plugin that sends through an HTTP API.
- 2026-11-12: an earlier version said Post SMTP’s phone-app failure alerts work with the free plugin. The free plugin’s code pairs with the Post SMTP app and posts failed-send alerts to the vendor’s relay without a plugin-side licence check; whether the relay applies a plan check is unverified.
- 2026-11-09: an earlier version gave every Google Workspace account a 2,000-a-day sending limit, called SMTP AUTH Basic Authentication default-on for existing Microsoft 365 tenants, and said tenants created after December 2026 lose it entirely. A Workspace trial gets 500 a day, and Google raises a new account’s limits only after the domain has cumulatively paid $100 USD. Microsoft disables SMTP AUTH on organisations created after January 2020 (they can enable it per mailbox) and says it will be unavailable by default on tenants created after December 2026. A line about Outlook.com accounts that its cited source did not support is cut.
- 2026-11-05: an earlier version listed Twilio SMS with Post SMTP’s free-tier alerts and called Post SMTP the only plugin built around failure alerts. Twilio SMS is Pro in Post SMTP 4.0.2, and FluentSMTP also sends free failure alerts.

