Mail Sandbox is a blazing-fast, lightweight email interception package for Laravel. Stop relying on external services for local testing. Inspect every pixel of your outgoing mails instantly.
composer require ashishdhakal/mail-sandbox
Engineered for developer productivity and seamless local testing.
Lightning-fast full-text search across subjects, recipients, and even attachment filenames with debounced AJAX updates.
Zero-loss capture. Handles unlimited duplicate filenames and identical files using unique index-based routing.
Drop it in and it works. Intercepts all outgoing mail traffic automatically based on your environment settings.
v8.1 +
v10 +
Publish the package configuration and database migrations:
Add the custom driver to your
config/mail.php:
'mailers' => [
'sandbox' => [
'transport' => 'sandbox',
],
],
Update your
.env to activate
it:
Once installed and enabled, any email sent by your application will be intercepted and stored.
You can view the intercepted emails at:
For example: http://localhost:8000/mail-sandbox
Testing notifications that go to 5 different users? Don't fill your personal inbox. See all 5 messages side-by-side in your local dashboard.
Verify that your automated Invoice PDFs are generating correctly without waiting for slow Mailtrap API requests.
Working without internet? Local Sandbox doesn't need an external API to capture and display emails. Total offline independence.
With the Gmail-style UI, you can inspect HTML layouts, responsive images (CIDs), and plain-text fallbacks in real-time.