armandsar / mail-mango
Mail preview package for laravel
Requires
- php: ~7.0
- illuminate/filesystem: ~5.1
- illuminate/mail: ~5.1
- illuminate/support: ~5.1
Requires (Dev)
- league/flysystem-vfs: ^1.0
- orchestra/testbench: ~3.0
- phpunit/phpunit: ~4.0||~5.0||~6.0
- squizlabs/php_codesniffer: ~2.3
This package is not auto-updated.
Last update: 2024-11-10 02:43:23 UTC
README
Mail preview for Laravel 5.
Email are opened directly in your browser. Works for emails sent in background as well (just make sure your base url is configured).
Install
Via Composer
$ composer require armandsar/mail-mango --dev
You'll only want this for local development,
so you should not update providers
array in config/app.php
.
Instead, add the provider in app/Providers/AppServiceProvider.php
,
like so:
public function register() { if ($this->app->environment() == 'local') { $this->app->register(\Armandsar\MailMango\MailMangoServiceProvider::class); } }
Set "mail_mango" as your mail driver.
Send emails and see them straight in your browser or head to yoursite.dev/mail-mango to see all emails
Publish config
$ php artisan vendor:publish
Console command to open email in browser
See mail_mango.php from published config to configure this to fit your needs. Defaults to xdg open on Linux and open on Mac.
See published config for other settings
TODO
Change layout
Testing
$ phpunit
License
The MIT License (MIT). Please see License File for more information.