Password reset links, contact form notifications, WooCommerce order receipts and new user welcomes all depend on one quiet piece of WordPress: email. When it works, nobody notices. When it does not, customers miss receipts, leads disappear and users get locked out. If you have ever wondered why your WordPress emails land in spam or never arrive at all, you are in good company. It is one of the most common support questions in the WordPress world.
The good news is that the fix is well understood. In this guide you will learn why WordPress email delivery can be unreliable out of the box, how to send through SMTP or an email API, how to set up SPF, DKIM and DMARC records for your domain, and how to test everything so you can be confident your messages reach the inbox.
Why WordPress Emails Go Missing
WordPress sends email through a function called wp_mail(). By default, it hands each message to the web server’s built-in mail system using PHP’s mail function. That is a sensible default because it works on almost any host with zero configuration. The challenge is that a web server is not a dedicated mail server, and modern inbox providers look for strong proof that a message really comes from the domain it claims.
Here are the usual reasons messages struggle to arrive:
- No authentication. Messages sent from the web server are often not signed with DKIM and may not be covered by your domain’s SPF record.
- A mismatched From address. The email says it is from
you@yourdomain.com, but it actually leaves from a shared hosting server. - Shared IP reputation. On shared hosting, many sites can send from the same IP address, so its reputation reflects everyone’s sending habits.
- Limited sending. Some hosts limit or disable outgoing mail from websites to protect their network.
The solution is to send WordPress email through a proper mail service and to publish DNS records that prove your domain authorised it.
The 2024 to 2025 Shift in Sender Requirements
Email authentication moved from “nice to have” to “expected” over the last two years. Since February 2024, Gmail and Yahoo have asked every sender to authenticate with SPF or DKIM, use valid DNS, send over TLS and keep spam complaints low. Senders of more than about 5,000 messages a day to Gmail must also pass SPF and DKIM, publish a DMARC policy, align their From domain and support one-click unsubscribe for marketing mail. Microsoft introduced similar requirements for Outlook.com, Hotmail and Live addresses from May 2025. Google documents the details in its email sender guidelines.
Most WordPress sites send far fewer than 5,000 messages a day, but the same records that bulk senders need are exactly what help a small business site reach the inbox. Setting them up once is one of the best investments you can make in your site’s reliability.

Step 1: Choose How WordPress Will Send Email
You have two main options, and both work well.
Option A: Your mailbox provider’s SMTP server
If you already have a mailbox for your domain, for example through your web host’s email service, Google Workspace, Microsoft 365 or Zoho Mail, WordPress can log in to that mailbox and send through its SMTP server. This is ideal for low-volume sites such as portfolios, blogs and small business sites. You will need:
- The SMTP host name, for example
smtp.yourprovider.com. - The port and encryption: usually 587 with STARTTLS or 465 with SSL/TLS.
- The mailbox username, usually the full email address.
- The password, or an app password if your provider uses two-factor authentication.
Option B: A transactional email service
Online stores, membership sites and anything that sends larger volumes benefit from a dedicated transactional email service such as Amazon SES, Brevo, Mailgun, Postmark, SendGrid or SMTP2GO. These services specialise in deliverability, offer detailed logs and usually connect through an API key, which is faster and more robust than SMTP. Many offer free tiers that comfortably cover small sites.
Step 2: Install and Configure an SMTP Plugin
An SMTP plugin tells wp_mail() to send through your chosen service instead of the server’s default mail function. Popular, well-maintained options include Post SMTP, WP Mail SMTP and FluentSMTP. They share the same core idea, so pick the one whose interface and features you like best.
Using Post SMTP as an example, the process looks like this:
- Go to Post SMTP → Settings and start the setup wizard.
- Choose your mailer: generic SMTP for a mailbox, or one of the built-in API integrations for a transactional service.
- Enter the From email and From name. Use an address on your own domain, such as
info@yourdomain.com. - Enter the host, port, encryption, username and password, or paste the API key.
- Save, then send a test email from the plugin’s test screen.
Until a mailer is configured, Post SMTP displays a notice explaining that it is mimicking the default WordPress delivery. That is a helpful reminder that the plugin is installed but not yet connected to a mail service; completing the steps above removes it.
Keep credentials safe
Your SMTP password or API key is a sensitive credential. Use an app password or a restricted API key that can only send mail, never your main account password. Many plugins also let you define credentials as constants in wp-config.php. Looking ahead, WordPress 7.2 adds a built-in encrypted store for credentials; read our guide to the WordPress Secrets API to see how plugins can use it.
Step 3: Publish SPF, DKIM and DMARC Records
These three DNS records work as a team. You add them wherever your domain’s DNS is managed: your registrar, your host or a DNS service such as Cloudflare.
SPF: who is allowed to send
SPF (Sender Policy Framework) is a TXT record listing the servers allowed to send mail for your domain. Your mail provider will tell you what to include. A typical record looks like this:
Type: TXT
Host: @
Value: v=spf1 include:_spf.yourprovider.com ~all
Two tips save a lot of trouble. First, a domain must have only one SPF record; if you use several services, combine their include: entries into a single record. Second, SPF allows a maximum of 10 DNS lookups, so avoid adding services you no longer use.
DKIM: a digital signature on every message
DKIM (DomainKeys Identified Mail) adds a cryptographic signature to each email. Your provider generates a key pair and gives you a public key to publish, usually as a TXT or CNAME record under a selector such as selector1._domainkey. Receiving servers use it to confirm the message was not altered and really came from an authorised sender. Use a key of at least 1024 bits; 2048 bits is the common recommendation today.
DMARC: the policy that ties it together
DMARC tells receiving servers what to do when a message fails SPF and DKIM alignment, and where to send reports. Start with a monitoring policy:
Type: TXT
Host: _dmarc
Value: v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com
With p=none, nothing is blocked; you simply receive reports showing which services send mail as your domain. Once every legitimate source passes, you can move gradually to p=quarantine and eventually p=reject, which also protects your domain from being spoofed in phishing emails. The DMARC.org overview explains the policy options in detail.
Alignment: the detail that makes DMARC pass
DMARC passes only when the domain in the visible From address matches the domain verified by SPF or DKIM. This is why the From email in your SMTP plugin should always be an address on your own domain, and why services should be set up to sign with your domain rather than theirs. Most transactional services guide you through this as part of domain verification.
Step 4: Test Your Email Delivery
DNS changes can take a little while to spread, so give them time, then test thoroughly:
- Send a test from your SMTP plugin to a Gmail address and an Outlook.com address.
- Check the message headers. In Gmail, open the message, choose Show original and look for SPF, DKIM and DMARC all marked PASS.
- Use a scoring tool such as mail-tester.com, which gives a score and highlights anything to fix.
- Trigger real site emails. Request a password reset, submit your contact form and, for stores, place a test order.
For ongoing monitoring, Google Postmaster Tools shows your domain’s reputation and spam rate with Gmail once you send enough volume.
Troubleshooting Common WordPress Email Problems
Connection timed out
Some hosts block outgoing SMTP ports. Try port 587 if 465 fails, or the other way round. If both time out, ask your host whether outbound SMTP is allowed, or switch to an API-based mailer, which uses standard HTTPS.
Authentication failed
Double-check the username, which is usually the full email address. If your mailbox uses two-factor authentication, generate an app password in your provider’s security settings and use that instead.
Emails arrive but land in spam
Check the headers for SPF, DKIM and DMARC results. A failure usually points to a missing include: in SPF, an unpublished DKIM key or a From address on a different domain. Also review content: clear subject lines and plain, helpful wording perform best.
Form plugin emails fail but test emails work
Look at the form’s notification settings. If the From field is set to the visitor’s email address, DMARC alignment will fail. Keep the From address on your domain and put the visitor’s address in the Reply-To field instead.
Ongoing Email Best Practices
- Turn on email logging in your SMTP plugin so you can confirm what was sent and when.
- Set up failure alerts. Many plugins can notify you through a backup channel if sending fails.
- Separate marketing and transactional mail. Newsletters work best through a dedicated email marketing platform, which keeps your receipts and password resets on a clean reputation.
- Review DMARC reports monthly to spot new services sending as your domain.
- Disable outgoing mail on staging copies so test actions never reach real customers. Our guide to copying a site with Reprint includes tips on this.
Reliable email is also part of good security hygiene, since password resets and admin alerts depend on it. See our WordPress security checklist for more steps that protect your site. Scheduled emails also depend on WP-Cron running reliably, which we cover in WordPress cron jobs explained.
SMTP or API: Which Connection Should You Choose?
Most SMTP plugins offer both a classic SMTP connection and direct API integrations with popular email services. Both deliver authenticated mail, so the choice comes down to your setup.
- Choose SMTP when you are sending through an existing mailbox, such as your host’s email or Google Workspace. It is universal, and nearly every provider supports it.
- Choose an API when you use a transactional email service. API connections travel over standard HTTPS, so they are rarely affected by blocked ports, they are usually faster, and they return clear error messages that make troubleshooting easier.
Whichever you choose, the DNS records in Step 3 are what really prove your identity to inbox providers, so do not skip them.
Your WordPress Email Deliverability Checklist
Use this quick list to confirm everything is in place:
- An SMTP plugin is installed and connected to a mailbox or transactional service.
- The From address uses your own domain, and the From name is recognisable.
- A single SPF record includes every service that sends for your domain.
- DKIM is published and passing for each sending service.
- A DMARC record exists, starting at
p=nonewith a reporting address. - Test emails show SPF, DKIM and DMARC as PASS in Gmail’s Show original view.
- Contact forms use your domain as the From address and the visitor’s email as Reply-To.
- Email logging and failure alerts are switched on.
Once every item is ticked, you have a setup that matches what major inbox providers expect. Revisit the list whenever you add a new service, such as a newsletter tool or CRM, that sends email on behalf of your domain.
Frequently Asked Questions
Do I need SMTP if my emails seem to work already?
It is still worth setting up. Default delivery can work one day and land in spam the next as provider rules evolve. Authenticated sending makes delivery consistent and gives you logs when you need to investigate.
Which port should I use for SMTP?
Port 587 with STARTTLS is the most widely recommended choice for sending. Port 465 with implicit SSL/TLS is also common. Port 25 is intended for server-to-server delivery and is often blocked on hosting networks.
Can I use more than one email service?
Yes. Just make sure your single SPF record includes all of them and each one signs with DKIM for your domain. Some SMTP plugins even support a fallback mailer if the main one is unavailable.
How long do DNS changes take?
Often minutes, sometimes a few hours, depending on the TTL of your records. If a test still fails after a few hours, re-check the record values for typos.
Conclusion
Reliable WordPress email comes down to two steps: send through a proper mail service using an SMTP plugin, and prove your domain’s identity with SPF, DKIM and DMARC. Together they meet the expectations of Gmail, Yahoo and Outlook, keep your order receipts and password resets out of spam, and protect your domain’s reputation. Set aside an hour to configure your plugin and DNS, run the tests above, and your site’s emails will arrive where they belong: in the inbox.

Leave a Reply