Giter Site home page Giter Site logo

krenhammer / laravel-mail-viewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from masterro94/laravel-mail-viewer

0.0 1.0 0.0 2.2 MB

Easily log and view in browser outgoing emails.

License: MIT License

PHP 34.55% JavaScript 37.47% Blade 1.22% CSS 0.76% Vue 25.99%

laravel-mail-viewer's Introduction

Latest Stable Version Total Downloads License

Laravel mail logger and viewer

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

preview

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

Laravel Mail Viewer
5.5.x - 8.* 1.3.x
9.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.

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();

laravel-mail-viewer's People

Contributors

dependabot[bot] avatar gw1nblayd avatar masterro94 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.