Skip to content
GPLWP Guides

How to improve email deliverability on WordPress

Marketing & Email Time About 30–60 minutes, plus DNS propagation time 6 steps Updated 7 Oct 2026

MARKETING & EMAIL
The short answer

Improve WordPress email deliverability by sending through an authenticated SMTP provider, using a domain-based From address, and publishing SPF, DKIM, and DMARC records. You can configure SMTP manually, but a plugin is faster when you also need logs and error reporting.

The route
  1. 01Find where delivery breaks
  2. 02Choose an authenticated sender
  3. 03Publish the DNS records
  4. 04Configure SMTP manually
  5. 05Send and inspect test emails
  6. 06Use the fast plugin route

What you need

  • Administrator access to WordPress
  • Access to your domain’s DNS settings
  • An email or transactional email provider with SMTP or API credentials
  • A domain-based From address such as [email protected]

Find where delivery breaks

List the messages that fail: contact form notifications, password resets, WooCommerce receipts, or marketing emails. Check whether they are not sent, rejected, delayed, or delivered to spam. A successful wp_mail() result only means WordPress handed the message to the mail system; it does not prove that the recipient received it.

Check the recipient’s spam folder and look for bounce messages. If only one provider, such as Gmail or Outlook, is affected, suspect sender authentication or reputation rather than a WordPress form error.

Choose an authenticated sender

Use a transactional email provider or the SMTP service supplied by your business email provider instead of relying on the web host’s default PHP mail route. Create a sender address on your own domain, such as [email protected], and use it consistently.

Do not use a visitor’s address or a personal Gmail or Yahoo address as the From address. Put the visitor’s address in Reply-To instead. The From domain needs to align with SPF or DKIM for DMARC to pass.

Publish the DNS records

In your provider’s setup screen, copy the required SPF and DKIM records into your domain’s DNS. Add a DMARC TXT record for your sending domain, initially with a monitoring policy such as p=none while you check reports. Follow the provider’s exact hostnames and values because DKIM selectors differ between providers.

Keep one SPF record for the domain and merge authorised services into it rather than publishing multiple SPF records. Confirm that the From domain, SPF or DKIM domain, and provider configuration are aligned. Google requires SPF or DKIM for all senders to Gmail and adds SPF, DKIM, DMARC, and alignment requirements for high-volume senders.

Configure SMTP manually

If you do not want a plugin, add a small custom plugin or must-use plugin that attaches to WordPress’s phpmailer_init action. Set the provider’s SMTP host, authenticated username and password, port, TLS or SSL encryption, and a verified From address. WordPress documents this hook for passing SMTP settings to PHPMailer.

This route is fine for a small site, but you must maintain the code, protect credentials, and troubleshoot failures yourself. It also gives you no built-in delivery log, provider dashboard, or convenient error report. A code change can be lost or broken during a rushed site migration, which is the kind of problem that appears when an order email is needed immediately.

Send and inspect test emails

Send a test through the configured mailer, then test a password reset, contact form, and any WooCommerce emails your site uses. Test addresses at Gmail, Outlook, and your own domain. Check the provider’s activity or bounce report, not just whether one test message appeared in your inbox.

If the test fails, verify the SMTP port and encryption pair, credentials, firewall restrictions, the exact From address, and whether the provider has verified your domain. If it reaches spam, inspect SPF, DKIM, DMARC alignment, message content, and sender reputation rather than repeatedly changing WordPress settings.

Use the fast plugin route

For the quickest setup, install and configure WP Mail SMTP Pro. Choose your mailer, enter or authorise its credentials, set a verified From address, and enable email logging. Its logs can show the source, mailer, recipient, status, and technical error details, which is more useful than guessing when a form or order email disappears.

The plugin changes how WordPress submits mail; it cannot repair missing DNS authentication, a poor sender reputation, or a recipient’s spam policy. Complete the provider’s SPF, DKIM, and DMARC setup, send real tests, and keep an eye on failed messages and bounces.

The fast route

Let WP Mail SMTP Pro do it

SMTP setup, provider integrations, logging, and error reports for sites whose WordPress emails are not reliably delivered.

Get WP Mail SMTP Pro

Sources

  1. developer.wordpress.org /reference/functions/wp_mail/?utm_source=openai
  2. support.google.com /mail/answer/81126?hl=en&utm_source=openai
  3. developer.wordpress.org /reference/hooks/phpmailer_init/?utm_source=openai
  4. wpmailsmtp.com /docs/how-to-set-up-email-logging/?utm_source=openai
  5. wordpress.org /support/topic/emails-going-to-spam-16/?utm_source=openai

Questions

Does WordPress send email reliably without SMTP?
WordPress can send email without an SMTP plugin, but the default route depends on the server’s mail configuration and reputation. The <code>wp_mail()</code> function reports whether the mail system accepted the request, not whether the recipient received the message. Authenticated SMTP or a provider API gives you a better sending path and clearer diagnostics.
Do SPF, DKIM, and DMARC all need to be configured?
You should configure all three for a domain that sends important or recurring email. SPF identifies authorised sending services, DKIM signs messages, and DMARC tells receiving systems how to handle authentication failures. Start DMARC with monitoring, check reports, then tighten the policy after every legitimate sender passes.
Why do WordPress emails go to spam after SMTP is configured?
SMTP only changes how the message is submitted; it does not guarantee inbox placement. Spam placement can still result from missing or misaligned SPF, DKIM, or DMARC, an unverified From address, poor IP or domain reputation, high complaint rates, or message content that resembles bulk spam. Check the provider and recipient diagnostics before changing the plugin.
Should the From address match the website domain?
Yes, in most cases use a real address on the domain that sends the email, such as <code>[email protected]</code>. Keep the From address stable and use Reply-To for a customer’s submitted address. A visitor-supplied From address can fail authentication or look like spoofing, while domain alignment helps DMARC validation.