armandsar / mail-mango by armandsar

Mail preview package for laravel
235
1
2
Package Data
Maintainer Username: armandsar
Maintainer Contact: armands.leinieks@gmail.com (Armands Leinieks)
Package Create Date: 2016-09-11
Package Last Update: 2018-04-16
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-15 15:05:51
Package Statistics
Total Downloads: 235
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

Mail Mango

Software License Build Status Total Downloads

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.