tommica / mailpox
A local development mailbox for Laravel applications.
Requires
- php: ^8.0|^8.1|^8.2|^8.3|^8.4
- illuminate/cache: ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/console: ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/database: ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/filesystem: ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/http: ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/mail: ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/routing: ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/support: ^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/view: ^9.0|^10.0|^11.0|^12.0|^13.0
- symfony/mailer: ^6.0|^7.0|^8.0
- symfony/mime: ^6.0|^7.0|^8.0
Requires (Dev)
- laravel/pint: ^1.0
- orchestra/testbench: ^7.0|^8.0|^9.0|^10.0|^11.0
- phpstan/phpstan: ^2.2
- phpunit/phpunit: ^9.5|^10.0|^11.0|^12.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-02 13:39:38 UTC
README
Mailpox is a local mailbox for Laravel 9–13. It captures messages through a Symfony Mailer transport and presents them in a self-contained Blade interface with no CDN dependencies.
Installation
composer require --dev tommica/mailpox php artisan vendor:publish --tag=mailpox-config php artisan migrate
Mailpox registers its mailer automatically through Laravel package discovery. Select it in local development:
MAIL_MAILER=mailpox MAILPOX_ENABLED=true MAILPOX_DRIVER=database
The inbox polls for new mail every five seconds by default; set MAILPOX_POLLING_INTERVAL=0 to disable it. Visit /mailpox. Routes are restricted to the local and testing environments.
Storage
The default database driver stores complete MIME bodies and attachment bytes in package tables. filesystem and TTL-backed cache drivers are also available.
Cleanup
Delete individual messages or all messages in the UI. Optional automatic retention is available:
MAILPOX_RETENTION_DAYS=7
Schedule mailpox:prune, or run php artisan mailpox:prune --days=7 manually.