Skip to content

Logs every email sended by laravel (via Mail class include queued mails), preventing duplicates, Monitors email reads, have event MessageRead.

Notifications You must be signed in to change notification settings

iWedmak/laravel-5-mail-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 

Repository files navigation

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 [email protected] or u can limit frequency (by default 30 minutes) of duplicates by adding in bcc [email protected] (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.

About

Logs every email sended by laravel (via Mail class include queued mails), preventing duplicates, Monitors email reads, have event MessageRead.

Resources

Stars

Watchers

Forks

Packages

No packages published