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).
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
$ php artisan vendor:publish
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
Change layout
$ phpunit
The MIT License (MIT). Please see License File for more information.