PHP Classes

Laravel Mail Logger: Track messages sent by Laravel mail to act on them

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 72 All time: 10,240 This week: 455Up
Version License PHP version Categories
laravel-5-mail-log 1.0.0The PHP License5Email, PHP 5, Logging
Description 

Author

This package can track messages sent by Laravel mail to act on them.


It comes with an service provider that tracks mail sending events and can perform several actions like:

- Log messages sent by the Laravel mail class
- Prevent sending duplicate messages
- Monitor messages read by recipients

Innovation Award
PHP Programming Innovation award nominee
August 2018
Number 7
Laravel is a popular framework that comes with email sending components.

However, applications that need email handling capabilities often require more than just sending messages.

This package implements other types of useful email handling capabilities like prevent sending duplicate messages or monitoring of whether the recipients of messages have read them.

Manuel Lemos
Picture of Wedmak
  Performance   Level  
Name: Wedmak <contact>
Classes: 2 packages by
Country: Russian Federation Russian Federation
Age: ???
All time rank: 4383123 in Russian Federation Russian Federation
Week rank: 178 Up10 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 2x

Documentation

laravel-5-mail-log

Logs every email sended by laravel (via Mail class include queued mails), preventing duplicates, u can override this by adding in bcc skeep@me.com or u can limit frequency (by default 30 minutes) of duplicates by adding in bcc delay@me.com (this can be changed in config file) Monitors email reads, have event MessageRead. * install

composer require iwedmak/mail-log
  • Or
    php composer.phar require iwedmak/mail-log
    
  • Or add to composer.json
    "iwedmak/mail-log": "dev-master"
    

Register provider, add this to config/app.php in providers array:

iWedmak\Mail\MailLogServiceProvider::class,

After that u will need to publish config

php artisan vendor:publish

and publish migrations and migrate

php artisan maillog:migration
php artisan migrate

Now we can subscribe to mailsend event, by adding to app/Providers/EventServiceProvider.php

protected $subscribe = [
    'iWedmak\Mail\MailEventListener',
];

Now u have one more event, it's iWedmak\Mail\MessageRead when email was read.


  Files folder image Files (9)  
File Role Description
Files folder imagesrc (4 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (9)  /  src  
File Role Description
Files folder imagecommands (1 file)
Files folder imageconfig (1 file)
Files folder imageLogger (3 files, 1 directory)
Files folder imageviews (1 directory)

  Files folder image Files (9)  /  src  /  commands  
File Role Description
  Plain text file MigrationCommand.php Class Class source

  Files folder image Files (9)  /  src  /  config  
File Role Description
  Accessible without login Plain text file config.php Aux. Auxiliary script

  Files folder image Files (9)  /  src  /  Logger  
File Role Description
Files folder imageEvents (1 file)
  Plain text file MailEventListener.php Class Class source
  Plain text file MailLog.php Class Class source
  Plain text file MailLogServiceProvider.php Class Class source

  Files folder image Files (9)  /  src  /  Logger  /  Events  
File Role Description
  Plain text file MessageRead.php Class Class source

  Files folder image Files (9)  /  src  /  views  
File Role Description
Files folder imagegenerators (1 file)

  Files folder image Files (9)  /  src  /  views  /  generators  
File Role Description
  Accessible without login Plain text file migration.blade.php Aux. Auxiliary script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:72
This week:0
All time:10,240
This week:455Up