PHPackages                             hxm/laravel-mail-log - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. hxm/laravel-mail-log

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

hxm/laravel-mail-log
====================

A Laravel Mail Log

0.1.1(1y ago)08MITPHPPHP ^7.0|^8.0

Since Sep 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hoanxuanmai/laravel-mail-log)[ Packagist](https://packagist.org/packages/hxm/laravel-mail-log)[ RSS](/packages/hxm-laravel-mail-log/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Laravel Mail Log
================

[](#laravel-mail-log)

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
- CC emails
- BCC emails
- Subject
- Body
- Status
- Error

Installation
------------

[](#installation)

```
composer require hxm/laravel-mail-log
```

- Run migrations to create database table:

```
php artisan migrate
```

- Publishing the config file

```
php artisan vendor:publish --tag=maillog
```

- This is the default content of the config file:

```
return [
    'send_message' => [
        'save_error' => true, // enable save error to database,
        'throw_exception' => true, //If set false, exceptions during email sending will not be thrown.
    ],
    'send_swift_message' => [
        'save_error' => true, // enable save error to database,
        'throw_exception' => false, //If set false, exceptions during email sending swift message will not be thrown.
    ],
    // route config
    'route' => [
        'enable' => true,
        'domain' => null,
        'middleware' => ['web'],
        'prefix' => 'mail-logs',
        'as' => 'mail-logs'
    ],
    //prune config
    'prune' => [
        'enable' => true,
        'days' => 30 //integer
    ]
];
```

This package will automatically register the event listeners and data will be inserted into database.

An eloquent model exists if you wish to query the data back out as: `HXM\LaravelMailLog\Models\MailLog`

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

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~26 days

Total

2

Last Release

628d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/253837bebf61531c6bb369dad0dd5e54136bd557b6583f058301ad837d5fa8dc?d=identicon)[hoanxuanmai](/maintainers/hoanxuanmai)

---

Top Contributors

[![hoanxuanmai](https://avatars.githubusercontent.com/u/47692574?v=4)](https://github.com/hoanxuanmai "hoanxuanmai (3 commits)")

---

Tags

laravelloggingmailemailmail-loghxmemail-log

### Embed Badge

![Health badge](/badges/hxm-laravel-mail-log/health.svg)

```
[![Health](https://phpackages.com/badges/hxm-laravel-mail-log/health.svg)](https://phpackages.com/packages/hxm-laravel-mail-log)
```

###  Alternatives

[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14844.4k1](/packages/guanguans-laravel-exception-notify)[saasscaleup/laravel-log-alarm

Laravel log Alarm help you to set up alarm when errors occur in your system and send you a notification via Slack and email

26927.9k](/packages/saasscaleup-laravel-log-alarm)[binarybuilds/laravel-mail-manager

A Laravel mail manager to record and re-send all outgoing emails.

2440.3k1](/packages/binarybuilds-laravel-mail-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
