Email testing · Mailtrap sandbox

Mailtrap Email Testing by Volade

Capture wp_mail on staging and local — route every message to your Mailtrap sandbox. Never hit real inboxes when capture is enabled.

v1.0.0 · capture on

Intercept mail before production

WooCommerce, password resets and form plugins — all captured to Mailtrap.

Send test email

Settings · wp-admin

SMTP & API credentials

Mailtrap sandbox host/port/user/pass or API token + inbox ID. Override via MTT_API_TOKEN in wp-config.

staging
SettingValue
SMTP hostsandbox.smtp.mailtrap.io:2525
API token••••••••••••abcd (masked)
Inbox ID2847391
Captureenabled
Environment guardlocal · development · staging

Capture log ring buffer

to · subject · body excerpt · status · ref · time

ToSubjectExcerptStatusRef
user@example.comYour password resetClick here to reset…sandboxsmtp:…
shop@example.comOrder #1042 confirmedThank you for your order…sandbox7f3a…
newsletter@listWeekly digestTop stories this week…captured
client@corp.comQuote requestWe received your inquiry…blocked

4 testing presets

🛡️
Staging Capture

Force capture · block real SMTP

📬
Mailtrap SMTP

Route via sandbox SMTP

💻
Local Dev

Log-only · no network

🏢
Agency Handoff

Capture + JSON export

REST, CLI & export

mtt/v1REST namespace
wp mttWP-CLI
JSONFree export
HealthSite Health test
Endpoint / commandAction
GET mtt/v1/statusHealth snapshot
GET mtt/v1/log/lastView last captured email
POST mtt/v1/testSend test to sandbox
wp mtt preset staging-captureApply staging preset