2017 © Pedro Peláez
 

library laravel-mail-viewer

Easily view in browser outgoing emails.

image

masterro/laravel-mail-viewer

Easily view in browser outgoing emails.

  • Wednesday, May 23, 2018
  • by MasterRO
  • Repository
  • 1 Watchers
  • 3 Stars
  • 46 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 92 % Grown

The README.md

, (*1)

Latest Stable Version Total Downloads License , (*2)

StandWithUkraine , (*3)

Mail logger and viewer for Laravel

Easily log, view and search in browser all outgoing emails.

preview, (*4)

This package gives an ability to log all outgoing emails to a database and view them all from a browser like they will be shown in a modern mail clients (gmail, etc.)., (*5)

Version Compatibility

Laravel Mail Viewer
5.5.x - 8.* 1.3.x
9.x - 10.x 2.x.x

Upgrade from v1 to v2

Version 2 has been almost totally rewritten and brings totally new fresh UI build with Vue.js 3 and TailwindCss 3.
It works only with Laravel 9+ as of Symfony Mailer replacement for previously used Swift Mailer., (*6)

Upgrade Steps

Composer Dependencies

You should update the dependency in your application's composer.json file:, (*7)

masterro/laravel-mail-viewer to ^2.0, (*8)

Database migrations

Run package migrations (requires doctrine/dbal to be installed):, (*9)

php artisan migrate

Publish assets

Run publish command:, (*10)

php artisan mail-viewer:publish --views

Update configs

V2 uses separate date format for date and time, update these in your config/mail-viewer.php file, (*11)

'date_format' => 'd.m.Y',
'time_format' => 'H:i:s',

Data pruning

V2 allows prune old records easily using mail-viewer:prune command. You can add it to your Scheduler., (*12)

// Console/Kernel.php
$schedule->command('mail-viewer:prune')->daily();

You can specify how many days data will be stored before pruning using config. Default value is 31 days., (*13)

'prune_older_than_days' => 31,

Installation

Step 1: Composer

From the command line, run:, (*14)

composer require masterro/laravel-mail-viewer

Step 2: Publish assets and configs

php artisan mail-viewer:publish

You have to publish assets, and views, configs are optional., (*15)

Step 3: Run migrations

php artisan migrate

Step 4: View emails

All ongoing emails you can find on /_mail-viewer page., (*16)

Configuration

You can review and change all the default configuration values in published config/mail-viewer.php file., (*17)

Data pruning (v2+)

The package allows you to prune old records easily using mail-viewer:prune command. You can add it to your Scheduler., (*18)

// Console/Kernel.php
$schedule->command('mail-viewer:prune')->daily();

The Versions

23/05 2018

dev-master

9999999-dev

Easily view in browser outgoing emails.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Roman Ihoshyn

laravel log mail mailable

18/05 2018

v0.0.1-alpha4

0.0.1.0-alpha4

Easily view in browser outgoing emails.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Roman Ihoshyn

laravel log mail mailable

21/02 2018

v0.0.1-alpha3

0.0.1.0-alpha3

Easily view in browser outgoing emails.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Roman Ihoshyn

laravel log mail mailable

16/01 2018

v0.0.1-alpha2

0.0.1.0-alpha2

Easily view in browser outgoing emails.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Roman Ihoshyn

laravel log mail mailable

16/01 2018

v0.0.1-alpha

0.0.1.0-alpha

Easily view in browser outgoing emails.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Roman Ihoshyn

laravel log mail mailable