Contact form notifications that never arrive, password reset emails stuck in spam and WooCommerce order emails customers never see are some of the most common WordPress problems. They usually have the same cause: WordPress sends email through the web server in a way mailbox providers do not trust. The fix is SMTP. Here is how I set it up.
Why WordPress emails fail
By default, WordPress uses the PHP mail function on your web server to send email. Many servers are not configured for reliable email, and their messages are not authenticated for your domain with SPF and DKIM. Mailbox providers treat these messages as suspicious.
Some hosts block or limit PHP mail entirely. The result is emails that land in spam or disappear without any error in WordPress.
What SMTP does
SMTP, Simple Mail Transfer Protocol, is the standard way email is sent between servers. An SMTP plugin makes WordPress send email through a proper mail service, such as your Google Workspace or Microsoft 365 account or a transactional email service, using authentication.
Messages sent this way are signed and authorised for your domain, so they are much more likely to reach the inbox.
- 1Pick mail serviceProvider or transactional
- 2Install SMTP pluginWP Mail SMTP, FluentSMTP
- 3Force From addressYour domain
- 4Authenticate DNSSPF, DKIM, DMARC
- 5Test every flowForms, resets, orders
Choosing a mail service
For low volumes, such as contact form notifications, your existing email provider can work, connected through its API or SMTP. For stores and sites sending many emails, transactional services such as Brevo, Postmark, Mailgun, Amazon SES or SendGrid are designed for reliable automated email.
Transactional services provide logs, bounce handling and good reputations. Many have free tiers suitable for small sites.
Choosing an SMTP plugin
WP Mail SMTP and FluentSMTP are popular choices. Both support many mail services through APIs or SMTP, include test tools and can log emails. FluentSMTP is free with many features; WP Mail SMTP has a free version and a Pro version with logging and more integrations.
Some form and e-commerce plugins integrate directly with mail services, but a site-wide SMTP plugin covers every email WordPress sends.
Setting up the plugin
Install the plugin, choose your mail service and enter the credentials it requires, such as an API key or OAuth connection. Set the From email to an address on your domain, such as notifications@yourdomain.com, and the From name to your business name.
Tick the option to force the From email, so plugins cannot send from random addresses that would fail authentication.
Authenticate your domain
In your mail service, verify your domain and add the DNS records it provides, usually SPF includes, DKIM keys and sometimes a return-path CNAME. Add or update your DMARC record. See SPF, DKIM and DMARC.
Without these records, emails may still be sent but are more likely to land in spam.
Reply-To for form notifications
Contact form notifications should come from your own domain but have the visitor’s email as the Reply-To address, so replying goes straight to them. Setting the From address to the visitor’s email causes authentication failures and spam filtering.
Check your form plugin’s notification settings and use the Reply-To field for the visitor’s address. See WordPress contact form setup.
Testing
Use the plugin’s test email feature to send a message to your inbox and to a Gmail address. Check that it arrives in the inbox and view the original message to confirm SPF, DKIM and DMARC pass.
Then test real flows: submit a contact form, request a password reset and, for stores, place a test order. Check every email type arrives.
Email logging
Logging records every email WordPress sends, with recipient, subject and status. It helps diagnose problems, such as whether a form notification was sent at all. Most SMTP plugins offer logging, and transactional services keep their own logs.
Logs can contain personal data, so limit retention and access, and mention email processing in your privacy policy.
Failures and backups
If the mail service fails or your API key expires, emails stop. Some plugins support a backup connection that takes over if the primary fails. Alerts for failed emails help catch problems quickly.
Include email checks in monthly maintenance, and test after hosting, DNS or plugin changes.
WooCommerce emails
Order confirmations, shipping updates and account emails are essential for stores. Use a transactional service with good deliverability, customise WooCommerce email templates with your branding and test each email type.
High-volume stores should monitor bounce and complaint rates in their mail service’s dashboard.
Common mistakes
Common mistakes include using a From address on a different domain than the authenticated one, setting up SMTP but not DNS authentication, using personal Gmail SMTP for business sites and leaving test mode or sandbox settings enabled in the mail service.
Another is installing several plugins that each try to control email. Use one SMTP plugin only.
Getting help
Reliable email delivery is set up on every site I build through my WordPress development service, and fixed for existing sites through my website protection service.
For mailbox setup, see setting up business email on your own domain.
Key takeaways
- WordPress's default mail function is unreliable on most servers.
- Send through a proper mail service with an SMTP plugin.
- Use your own domain as the From address and the visitor as Reply-To.
- Authenticate the domain and test every email type.
Frequently asked questions
Why are my WordPress emails not arriving?
Usually because the server sends unauthenticated email. Use SMTP with a proper mail service.
Which SMTP plugin is best?
WP Mail SMTP and FluentSMTP are both reliable choices.
Can I use Gmail for WordPress SMTP?
Use Google Workspace with your domain, not a personal Gmail account, for business sites.
Is a transactional email service expensive?
Many have free tiers for low volumes and modest pricing above that.
Do I need SMTP on Shopify?
No. Shopify sends email for you; verify your sender domain.
Why do form emails show my own address as sender?
That is correct. The visitor's address should be in Reply-To.
How do I know emails are being sent?
Enable email logging in your SMTP plugin or check your mail service's logs.
