modernmcguire / mailthief
A Laravel package to catch outbound mail (similar to Mailtrap) that also provides a UI to view them.
Installs: 5 882
Dependents: 0
Suggesters: 0
Security: 0
Stars: 33
Watchers: 4
Forks: 3
Open Issues: 0
Language:Blade
Requires
- php: ^8.1
- illuminate/support: ^9.0|^10.0|^11.0
- livewire/livewire: ^2.12|^3.0
Requires (Dev)
- orchestra/testbench: ^7.0|^8.5|^9.0
- phpunit/phpunit: ^9.0|^10.1|^11.0
README
A drop-in replacement for Mailtrap
A custom Laravel mailer that captures outbound emails, saves them to the database, and provides a clean UI for viewing. For a local environment you have wonderful tools like HELO or Mailhog. For dev environments, there's really only Mailtrap. This is meant to replace that.
Do you just want to track your emails and don't need to capture them? Try out MailSpy.
Installation
You can install the package via composer:
composer require modernmcguire/mailthief
- Update your
.env
file
MAIL_MAILER=mailthief
- Run migrations
php artisan migrate
And that's it!
Usage
You can publish the config using Laravel's built in php artisan vendor:publish
The UI can be found at /dev/emails. This path is configurable via the config file.
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email ben@modernmcguire.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.