In this guide: How to set up SMTP in WordPress so emails arrive: why WordPress emails fail, what SMTP is, installing an SMTP plugin, connecting an email service, and…
Your contact form says “Message sent!” — but the email never arrives. Customers don’t get order confirmations. Password reset emails vanish. This is one of the most common WordPress problems, and the fix is almost always the same: set up SMTP.
Why WordPress emails fail
By default, WordPress sends email using PHP’s mail() function through your web server. Problems:
- No proper authentication: mailbox providers like Gmail and Outlook can’t verify the email really comes from your domain.
- Shared server reputation: your hosting server’s IP may be shared with others who send spam.
- Mismatched sender: WordPress often sends from
wordpress@yourdomain.com, which may not exist or match your SPF/DKIM setup.
- Hosting restrictions: some hosts limit or disable PHP mail.
- Stricter rules: Gmail and Yahoo have tightened authentication requirements for senders.
Result: emails land in spam or are rejected silently.
What SMTP is
SMTP (Simple Mail Transfer Protocol) is the standard protocol for sending email. Setting up SMTP in WordPress means your site sends email through a real, authenticated email service — just like your email app does.
Benefits:
- Authenticated sending with SPF, DKIM, and DMARC alignment.
- Better deliverability — emails reach inboxes.
- Logs and tracking — see what was sent and whether it failed.
- Reliability — specialized infrastructure built for sending.
Installing an SMTP plugin
Popular options:
- WP Mail SMTP: widely used, with a setup wizard and many mailer integrations.
- FluentSMTP: free, lightweight, supports multiple connections and fallback.
- Post SMTP: includes logging and alerts.
- Your email service’s official plugin (some services provide their own).
Install one plugin only. Some form plugins and WooCommerce extensions also include sending options — avoid conflicting setups.
Connecting an email service
Option 1 — Transactional email service (recommended for most sites)
Services built for website and application emails, often with free tiers for low volume. Examples include Brevo, SendGrid, Mailgun, Postmark, Amazon SES, and SMTP2GO (check current plans).
Steps:
- Create an account with the service.
- Verify your domain by adding the DNS records it provides (DKIM, and often SPF and return-path/CNAME records).
- Create an API key (preferred) or SMTP credentials.
- In your SMTP plugin, choose the service as your mailer and paste the API key.
- Set the From Email to an address on your domain (e.g.,
hello@yourdomain.com or notifications@yourdomain.com) and Force From Email if available.
- Set a recognizable From Name (your brand).
Option 2 — Google Workspace or Microsoft 365
- Many SMTP plugins can connect via OAuth to Google or Microsoft.
- Good for low-volume sites; these services have sending limits and aren’t designed for bulk sending.
Option 3 — Your host’s SMTP server
- Use the mailbox credentials from your hosting email. Better than PHP mail, but deliverability depends on your host’s reputation.
Update DNS:
- ☐ SPF: include your email service (one SPF record per domain — merge multiple services into a single record).
- ☐ DKIM: add the records from your service.
- ☐ DMARC: start with a monitoring policy (e.g.,
p=none) and tighten later.
Learn what each does in SPF, DKIM and DMARC in Plain English.
Testing deliverability
- Send a test email from the SMTP plugin’s test tool to Gmail and Outlook addresses.
- Check inbox vs spam.
- View the email headers (“Show original” in Gmail) and confirm SPF, DKIM, and DMARC: PASS.
- Submit your contact form and complete a test order (for stores).
- Use a mail tester service to get a deliverability score and specific recommendations.
- Enable email logging in your plugin so you can see failures.
- Set up failure alerts if available.
Other tips:
- Save form entries in your form plugin as a backup, in case an email fails — see How to Create a Contact Form in WordPress.
- Use a reply-to address that reaches a real inbox.
- Don’t send newsletters through your transactional service unless it’s designed for both — use an email marketing platform for campaigns.
Further reading: official WordPress documentation
Key Takeaways: SMTP in WordPress
- WordPress’s default PHP mail often lands in spam or fails.
- SMTP sends email through an authenticated, reliable service.
- Use an SMTP plugin with a transactional email service or your business email.
- Add SPF, DKIM, and DMARC records.
- Test with real inboxes and check headers for PASS results.