WooCommerce mail fix
Fix WooCommerce emails not sending.
WooCommerce adds template and order-status logic on top of `wp_mail()`. Fix the transport first, then test the WooCommerce trigger that should send the message.
WooCommerce evidence matrix
| Evidence | Likely layer | First check |
|---|---|---|
| Plain `wp_mail()` fails | Transport | Fix SMTP/PHP mail before WooCommerce settings. |
| Plain `wp_mail()` works, order email fails | WooCommerce template/status | Check email template enabled and order status trigger. |
| Admin email arrives, customer email missing | Recipient/delivery | Check customer address, spam, and SMTP provider logs. |
| From address is off-domain | Sender policy | Use a verified domain From address. |
Test order
- Run the plain `wp_mail()` test.
- Confirm the WooCommerce email template is enabled.
- Trigger the exact order status transition that should send the email.
- Check SMTP provider logs for the customer recipient.