Mail Digester will schedule and run a daily, weekly or monthly summary of unread emails from the default notifications table of Laravel.
Basically for those people who like to ignore broadcasts or slack messages...
Via Composer:
composer require waynebrummer/mail-digester
Publish the config file:
php artisan vendor:publish --provider="Pace\MailDigester\ServiceProvider"
Once installed, it will collect all unread emails from the notifications table.
WIP Group together common items from the data attribute.
The following config options are available in config/mail-digester.php
:
-
enabled: Set to
true
orfalse
to enable the sending of the mails. -
frequency: Array set to
daily
,weekly
ormonthly
to schedules for mail digestion. -
occurrence: Physical time to the server or when to trigger summarized mails.
daily
will usehh:mm
weekly
will use e.g1
,2
etc7
monthly
will use1
,2
etclast_day
-
mark_read: Will automatically update the unread status of the mail once the summary mail has been sent.
Padding the config
requested middleware id a lot with the
notification id will render the notification read.
identifier
'' {url}/notification_id={notification_id} ''
Make sure to use mailtrap.io or Telescope or something.
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email @wayne.brummer instead of using the issue tracker.
-- None
The Apache License (Apache 2.0). Please see License File for more information.