masterro / laravel-mail-viewer
Easily view in browser outgoing emails.
Installs: 37 466
Dependents: 0
Suggesters: 0
Security: 0
Stars: 61
Watchers: 2
Forks: 12
Open Issues: 6
Language:JavaScript
Requires
- doctrine/dbal: ^3.5 | ^4.0 | ^5.0
- illuminate/database: ^9.0|^10.0|^11.0
- illuminate/events: ^9.0|^10.0|^11.0
- illuminate/mail: ^9.0|^10.0|^11.0
- illuminate/routing: ^9.0|^10.0|^11.0
- illuminate/support: ^9.0|^10.0|^11.0
- illuminate/view: ^9.0|^10.0|^11.0
Requires (Dev)
- orchestra/testbench: ^7.0|^8.0|^9.0
- dev-master
- v2.x-dev
- v2.3.1
- v2.3.0
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.0
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.x-dev
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.2.1
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.1
- v1.0.0
- v0.1.0
- v0.0.1-alpha5
- v0.0.1-alpha4
- v0.0.1-alpha3
- v0.0.1-alpha2
- v0.0.1-alpha
- dev-dependabot/npm_and_yarn/elliptic-6.6.0
- dev-dependabot/npm_and_yarn/webpack-5.95.0
- dev-dependabot/npm_and_yarn/multi-9f37c16f8f
- dev-dependabot/npm_and_yarn/elliptic-6.5.7
- dev-dependabot/npm_and_yarn/multi-9423f4c335
- dev-dependabot/npm_and_yarn/multi-cf87d80143
- dev-dependabot/npm_and_yarn/multi-d66d039ac5
This package is auto-updated.
Last update: 2024-10-31 01:47:56 UTC
README
Mail logger and viewer for Laravel
Easily log, view and search in browser all outgoing emails.
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.).
Version Compatibility
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.
Upgrade Steps
Composer Dependencies
You should update the dependency in your application's composer.json file:
masterro/laravel-mail-viewer
to ^2.0
Database migrations
Run package migrations (requires doctrine/dbal
to be installed):
php artisan migrate
Publish assets
Run publish command:
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
'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.
// 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.
'prune_older_than_days' => 31,
Installation
Step 1: Composer
From the command line, run:
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.
Step 3: Run migrations
php artisan migrate
Step 4: View emails
All ongoing emails you can find on /_mail-viewer
page.
Configuration
You can review and change all the default configuration values in published config/mail-viewer.php
file.
Data pruning (v2+)
The package allows you to prune old records easily using mail-viewer:prune
command. You can add it to your Scheduler.
// Console/Kernel.php $schedule->command('mail-viewer:prune')->daily();