Download the PHP package tompec/laravel-email-log without Composer
On this page you can find all versions of the php package tompec/laravel-email-log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tompec/laravel-email-log
More information about tompec/laravel-email-log
Files in tompec/laravel-email-log
Package laravel-email-log
Short Description A Laravel package to log outgoing emails
License MIT
Homepage https://github.com/tompec/laravel-email-log
Informations about the package laravel-email-log
A Laravel package to log emails sent to your users
laravel-email-log
logs outgoing emails sent to your users.
If you use MailGun, you can also track deliveries, failures, opens and clicks.
Installation
Install the package via composer:
If you use Laravel 5.5+, the package will register itself, otherwise, add this to your config/app.php
Run the migration:
Configuration (optional)
Publish the configuration file:
Here's the content of the config file.
If you want to get all the email logs for your a user, add this to your App\User.php
file (or the model you chose as your recipient_model
):
Then you can do App\User::find(1)->email_logs
to retreive all the emails that this user has received.
Webhooks
If you use Mailgun, you can track these 4 events: delivered
, opened
, clicked
, permanent_fail
.
Add the following url as a new webhook.
Laravel Nova
If you use Laravel Nova, you can create a new resource to view the content of the table:
Then paste the content of this gist for a quick setup.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Thomas Petracco (GitHub)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-email-log with dependencies
doctrine/dbal Version ^2.10
illuminate/database Version ^6.0
illuminate/support Version ^6.0