WordPress SMTP for Transactional Email
Configure WordPress transactional email through SMTP relay while preserving SPF, DKIM, DMARC, and delivery tracking.
TL;DR
WordPress should send production transactional email through authenticated SMTP relay, not the default local mail path. Verify the From domain, use port 587 with STARTTLS, and monitor bounces through provider webhooks.
What you will learn
- Configure WordPress SMTP safely
- Avoid default mail delivery problems
- Protect WooCommerce and account emails from deliverability regressions
Why default WordPress mail fails
WordPress uses wp_mail() as an abstraction. On many hosts, that eventually uses local mail infrastructure with weak authentication and poor visibility.
For production transactional email, use authenticated SMTP relay or a provider plugin so mail is signed, logged, and trackable.
Postscale SMTP settings
| Setting | Value |
|---|---|
| SMTP host | smtp.postscale.io |
| Port | 587 |
| Encryption | STARTTLS |
| Authentication | Enabled |
| Username | SMTP credential username |
| Password | SMTP credential secret |
Use port 465 only if the SMTP plugin requires implicit TLS.
From domain rules
Use a From address on a verified domain:
store@example.com
Avoid sending WooCommerce receipts from free mailbox domains such as gmail.com or outlook.com. Your store domain should pass SPF, DKIM, and DMARC alignment.
WooCommerce checklist
- Verify the sending domain.
- Configure SMTP credentials.
- Send a password reset test.
- Send a WooCommerce order test.
- Check headers for SPF, DKIM, and DMARC pass.
- Import suppressions from the old provider.
- Keep customer-service reply handling stable.
For commerce-specific deliverability, see Postscale for e-commerce.
Webhook handling
WordPress does not need to process every event itself. A webhook handler can be:
- A small custom plugin.
- A REST endpoint in a companion application.
- A queue worker that updates WordPress through the REST API.
Use idempotency so duplicate webhooks do not update the same order repeatedly.
References
Frequently asked questions
- Which WordPress emails are transactional?
- Password resets, account verification, WooCommerce order updates, shipment updates, account changes, and admin notifications are transactional.
- Can WordPress receive delivery webhooks?
- Usually the webhook handler belongs in a small plugin, custom endpoint, or external application that can update order or user metadata.
Related guides
Put the guide into production
Postscale brings sending, inbound processing, DMARC reporting, and masked addresses behind one API so the operational pieces stay connected.