jsefton/laravel-mail-audit

Store logs in the database of all mail sent and its status for auditing

1.0.0 2021-05-02 21:09 UTC

This package is auto-updated.

Last update: 2024-11-29 06:22:45 UTC


README

Creates a log of all mail sending and sent in a database table to help with auditing mail.

Able to store and provide:

  • Date
  • To emails
  • From emails
  • BCC emails
  • Subject
  • Content of email
  • Status
  • Sent flag

Installation

composer require jsefton/laravel-mail-audit

Run migrations to create 'email_audits' table:

php artisan migrate

This package will automatically register the event listeners and data will be inserted within the 'email_audits' table.

An eloquent model exists if you wish to query the data back out as: MailAudit\EmailAudit

Please note currently for Laravel 7+ until tested and verified in lower versions.