PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  Info   View files Documentation   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2018-07-17 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 48 This week: 45All time: 9,272 This week: 22Up
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
Nominee
Vote
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
Name: Wedmak <contact>
Classes: 2 packages by
Country: Russian Federation Russian Federation
Innovation award
Innovation award
Nominee: 2x

Details

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 `bash php composer.phar require iwedmak/mail-log `
  • Or add to composer.json `bash "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  
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  /  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  /  src  /  commands  
File Role Description
  Plain text file MigrationCommand.php Class Class source

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

  Files folder image Files  /  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  /  src  /  Logger  /  Events  
File Role Description
  Plain text file MessageRead.php Class Class source

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

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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:48
This week:45
All time:9,272
This week:22Up