Email testing · Mailtrap sandbox
Capture wp_mail on staging and local — route every message to your Mailtrap sandbox. Never hit real inboxes when capture is enabled.
WooCommerce, password resets and form plugins — all captured to Mailtrap.
Settings · wp-admin
Mailtrap sandbox host/port/user/pass or API token + inbox ID. Override via MTT_API_TOKEN in wp-config.
| Setting | Value |
|---|---|
| SMTP host | sandbox.smtp.mailtrap.io:2525 |
| API token | ••••••••••••abcd (masked) |
| Inbox ID | 2847391 |
| Capture | enabled |
| Environment guard | local · development · staging |
to · subject · body excerpt · status · ref · time
| To | Subject | Excerpt | Status | Ref |
|---|---|---|---|---|
| user@example.com | Your password reset | Click here to reset… | sandbox | smtp:… |
| shop@example.com | Order #1042 confirmed | Thank you for your order… | sandbox | 7f3a… |
| newsletter@list | Weekly digest | Top stories this week… | captured | — |
| client@corp.com | Quote request | We received your inquiry… | blocked | — |
Force capture · block real SMTP
Route via sandbox SMTP
Log-only · no network
Capture + JSON export
| Endpoint / command | Action |
|---|---|
GET mtt/v1/status | Health snapshot |
GET mtt/v1/log/last | View last captured email |
POST mtt/v1/test | Send test to sandbox |
wp mtt preset staging-capture | Apply staging preset |