WP Mail SMTP Guide: WordPress Setup, Mailers, DNS, Testing, Logs, and QA (2026)

Set up WP Mail SMTP for WordPress email delivery with mailer selection, Brevo and SMTP configuration, From address rules, DNS authentication, testing, logs, WooCommerce checks, and launch QA.

WP Mail SMTP
WP Mail SMTP Guide?

WP Mail SMTP is a practical fix for one of WordPress’s most common operational problems: site emails that never arrive, arrive late, or land in spam. It replaces the fragile default sending path with a provider-backed SMTP or API mailer.

The plugin is only part of the fix. Reliable WordPress email also needs a verified sender, domain authentication, correct From settings, logs, and real tests for the plugins that actually generate mail.

What WP Mail SMTP Does

WordPress sends email through wp_mail(). By default, that often depends on the hosting server’s mail configuration. WP Mail SMTP changes that route so WordPress email is sent through a configured mailer.

Common email types affected:

  • Password reset emails.
  • New user and admin notifications.
  • Contact form notifications.
  • WooCommerce order emails.
  • Membership and course emails.
  • Booking, appointment, and quote emails.
  • Security and plugin alerts.

This is transactional site email. It is different from newsletter marketing, although the same provider may support both.

When You Need WP Mail SMTP

Install a proper mailer if:

  • Contact forms say “sent” but nothing arrives.
  • WooCommerce order emails are missing.
  • Password resets fail.
  • Emails land in spam.
  • Your host blocks PHP mail or outbound SMTP.
  • You need logs for support and troubleshooting.
  • You changed domains, DNS, hosting, or email providers.
  • You run a store, membership site, booking system, LMS, or lead-generation site.

For a brochure site with no forms or accounts, the risk is lower. For any site that depends on leads, orders, or account email, sending reliability is production infrastructure.

Step 1: Choose a Mailer

WP Mail SMTP supports multiple mailer types. Choose based on the tools you already use and the level of monitoring you need.

Mailer typeBest fitNotes
BrevoSites that want transactional email plus marketing or CRM optionsVerify current account limits and sender domain before moving production mail
SendGrid or MailgunDeveloper-led sites that want API sending and event dataGood for technical teams comfortable with DNS and logs
SMTP.com or similarSites that want dedicated SMTP infrastructureConfirm plan, credentials, port, and encryption settings
Gmail or Google WorkspaceLow-volume sites already using Google identitiesOAuth setup and sending limits matter
Amazon SESHigh-volume or AWS-centered systemsPowerful but more technical to configure and monitor
Other SMTPExisting business email or host-provided SMTPUse only if the provider supports reliable authenticated sending

Prefer a mailer with clear error reporting. When email breaks, logs are often the difference between a fast fix and guessing.

Step 2: Install WP Mail SMTP

From the WordPress admin:

  1. Go to Plugins > Add New.
  2. Search for “WP Mail SMTP”.
  3. Install the plugin from the recognized publisher.
  4. Activate it.
  5. Open WP Mail SMTP settings or the setup wizard.

If the site already has another SMTP or mailer plugin, do not run two mailer plugins at the same time. Decide which plugin owns WordPress mail and disable the others after migration testing.

Step 3: Configure the From Email and From Name

The From settings affect trust and authentication.

Use:

Avoid:

  • Sending business site email from a free mailbox address.
  • Using a domain you do not control.
  • Mixing many From domains across plugins.
  • Changing From identity frequently.

For ecommerce, use a consistent sender for order and account messages so customers know what to expect.

Step 4: Connect Brevo or Another Mailer

For a Brevo-style API setup:

  1. Create or sign in to the email provider account.
  2. Verify the sending domain or sender identity.
  3. Create the API key or SMTP credentials required by the plugin.
  4. Select the matching mailer in WP Mail SMTP.
  5. Paste the credential into the plugin settings.
  6. Save settings.
  7. Send a test email.

For generic SMTP:

  • Confirm SMTP host.
  • Confirm port.
  • Choose the correct encryption mode.
  • Use the exact username and password or generated SMTP key.
  • Check whether the host blocks outbound SMTP ports.

If generic SMTP fails because of hosting restrictions, an API mailer may be a better route.

Step 5: Authenticate the Domain

WP Mail SMTP can route email correctly while inbox providers still distrust the domain. DNS authentication completes the setup.

Configure:

  • SPF for the service that sends your email.
  • DKIM for cryptographic sender verification.
  • DMARC so receiving providers know how to evaluate alignment.

Watch for common DNS mistakes:

  • Multiple SPF records on the same domain.
  • DKIM copied with missing quotes or truncated values.
  • Records added to the wrong domain or subdomain.
  • DMARC policy applied aggressively before monitoring.
  • From address using a different domain than the authenticated sender.

After DNS changes, send real messages and inspect authentication results. Do not rely only on the DNS provider screen.

Step 6: Send the Right Tests

The WP Mail SMTP test email confirms the mailer connection. It does not prove every WordPress workflow is fixed.

Run this test set:

TestExpected result
WP Mail SMTP test emailConfirms mailer credentials and connection
Password resetConfirms core WordPress account email
New user notificationConfirms user/admin notification path
Contact formConfirms form plugin recipient and template settings
WooCommerce test orderConfirms customer and store order email
Failed/refunded orderConfirms less common WooCommerce templates
Security or backup alertConfirms operational alerts if used

Test with a mailbox outside your domain too. Internal delivery can succeed while customer mail fails.

Step 7: Use Logs and Alerts

Email logs are not just a paid-feature convenience. They are operational evidence.

Useful log fields:

  • Time sent.
  • Recipient.
  • Subject.
  • Mailer response.
  • Error message.
  • Source plugin or hook.
  • Delivery status when available.

When a customer says “I never received the password reset,” logs tell you whether WordPress attempted to send it, whether the provider accepted it, and where to investigate next.

WooCommerce Setup Notes

WooCommerce sites need extra care because email failures affect support and revenue.

Check:

  • WooCommerce email templates are enabled.
  • Admin recipients are correct.
  • Customer emails use a trusted From identity.
  • Order status changes trigger the expected messages.
  • Guest checkout customers receive order email.
  • Refund, cancellation, and failed-order messages work.
  • No marketing automation plugin is duplicating transactional order emails.

If you also run a WooCommerce email marketing plugin, clearly separate transactional order mail from promotional campaigns.

Contact Form Setup Notes

For forms:

  • Keep the From address on your domain.
  • Put the visitor email in Reply-To.
  • Avoid using the visitor email as the From address.
  • Confirm admin notification and visitor confirmation are both enabled if needed.
  • Check spam protection settings if submissions disappear.
  • Test each form separately.

A successful WP Mail SMTP test does not fix a contact form with the wrong recipient or disabled notification.

Troubleshooting WP Mail SMTP

ProblemLikely causeFix
Test email failsBad credential, blocked port, wrong mailer settingsRecreate credentials, verify port/encryption, try API mailer
Test works but forms failForm notification setting problemCheck recipient, From, Reply-To, and form-specific notifications
Emails go to spamMissing authentication or reputation issueConfigure SPF, DKIM, DMARC and review content
WooCommerce emails missingTemplate disabled or status not triggeredCheck WooCommerce email settings and order transitions
From address changes unexpectedlyAnother plugin overrides mail headersDisable duplicate mail plugins and enforce settings carefully
Works for admin but not customersSuppression, customer address, or template path issueCheck logs and test external addresses

Security and Credential Hygiene

Treat mailer credentials as production secrets.

  • Store credentials only in the plugin settings or approved secret manager.
  • Do not paste API keys into posts, pages, or tickets.
  • Rotate credentials if they were exposed.
  • Restrict API keys if the provider supports scoped permissions.
  • Remove unused mailer credentials after migration.
  • Limit admin access to users who need it.

Email credentials can be abused for spam. Protect them like payment or infrastructure credentials.

Maintenance Checklist

Review monthly or after major changes:

  • Plugin and WordPress versions are current.
  • Test email succeeds.
  • Password reset succeeds.
  • Contact forms work.
  • WooCommerce order emails work.
  • SPF, DKIM, and DMARC still pass.
  • Logs show no repeated failures.
  • Bounce and complaint signals remain low.
  • Old SMTP plugins are not reactivated.

Also retest after changing DNS, domain, hosting, CDN, checkout, form plugin, security plugin, or email provider.

FAQ

Is WP Mail SMTP enough for newsletters?

No. WP Mail SMTP handles WordPress transactional sending. Newsletters need an email marketing platform with subscribers, unsubscribe handling, templates, segmentation, and campaign reporting.

Should I use SMTP or an API mailer?

Use the option that your provider and site can support reliably. API mailers often give cleaner setup and logs. SMTP is fine when credentials, ports, encryption, and host rules are correct.

Can I use the same provider for WordPress email and marketing email?

Yes, but keep the use cases separate. Transactional WordPress email and marketing campaigns need different consent, templates, reporting, and suppression rules.

What should I do if the test email works but users still complain?

Check real workflow logs. Test password resets, forms, WooCommerce order states, and external recipient mailboxes. A connection test only proves the plugin can send one message.

Frequently Asked Questions

What is WP Mail SMTP?
WP Mail SMTP is a WordPress mailer plugin that routes WordPress email through an authenticated SMTP or API mail service instead of relying on the default server mail path.
How do I set up WP Mail SMTP?
Install the plugin, choose a mailer, connect the provider credentials, set a From Email on your verified domain, authenticate the domain with SPF/DKIM/DMARC, send test emails, then test WordPress, form, WooCommerce, and admin notifications.
Which mailer should I use with WP Mail SMTP?
Choose based on your existing stack, volume, and logging needs. Brevo, SendGrid, Mailgun, SMTP.com, Gmail, and Amazon SES are common options. API mailers are often easier to monitor; SMTP can work well when hosting allows the required connection.

Subscribe to updates

how-to

Drop your email or phone number — we'll send you what matters next.

auto-detect
Get Brevo