PHPackages                             illuma-law/healthcheck-mail - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. illuma-law/healthcheck-mail

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

illuma-law/healthcheck-mail
===========================

Focused mail health check for Spatie's Laravel Health package.

v0.1.4(1mo ago)062MITPHPPHP ^8.3CI passing

Since Apr 20Pushed 1mo agoCompare

[ Source](https://github.com/illuma-law/healthcheck-mail)[ Packagist](https://packagist.org/packages/illuma-law/healthcheck-mail)[ Docs](https://github.com/illuma-law/healthcheck-mail)[ GitHub Sponsors](https://github.com/illuma-law)[ RSS](/packages/illuma-law-healthcheck-mail/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (16)Versions (6)Used By (0)

Healthcheck mail for Laravel
============================

[](#healthcheck-mail-for-laravel)

[![Tests](https://github.com/illuma-law/healthcheck-mail/actions/workflows/run-tests.yml/badge.svg)](https://github.com/illuma-law/healthcheck-mail/actions)[![Packagist License](https://camo.githubusercontent.com/e60623f508586f049d48cfb8396ee411b0c9bc3be174381a1893c37462a3c1e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e63652d4d49542d626c7565)](http://choosealicense.com/licenses/mit/)[![Latest Stable Version](https://camo.githubusercontent.com/34b4a2e59d3fcaac9279a23aca4948ad9427398272e6d735152908bb917c437c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696c6c756d612d6c61772f6865616c7468636865636b2d6d61696c3f6c6162656c3d56657273696f6e)](https://packagist.org/packages/illuma-law/healthcheck-mail)

A focused mail health check for Spatie's [Laravel Health](https://spatie.be/docs/laravel-health/v1/introduction) package.

This package provides a simple, direct health check to verify that your application's SMTP server is reachable and accepting TCP connections.

Features
--------

[](#features)

- **Connectivity Check:** Verifies that your Laravel application can successfully connect to the configured SMTP host and port.
- **Latency Monitoring:** Measures the response time of the SMTP connection.
- **Smart Skipping:** Automatically skips the check if the default mailer is set to `log`, `array`, `fail`, or `null`.

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

[](#installation)

Require this package with composer:

```
composer require illuma-law/healthcheck-mail
```

Usage &amp; Integration
-----------------------

[](#usage--integration)

Register the check inside your application's health service provider (e.g. `AppServiceProvider` or a dedicated `HealthServiceProvider`), alongside your other Spatie Laravel Health checks:

### Basic Registration

[](#basic-registration)

```
use IllumaLaw\HealthCheckMail\MailConnectivityCheck;
use Spatie\Health\Facades\Health;

Health::checks([
    MailConnectivityCheck::new(),
]);
```

### Expected Result States

[](#expected-result-states)

The check interacts with the Spatie Health dashboard and JSON endpoints using these states:

- **Ok:** SMTP server is reachable and accepting connections.
- **Skipped:** The default mailer is not an SMTP-based driver.
- **Failed:** SMTP server was unreachable, or the mailer configuration is missing.

Testing
-------

[](#testing)

Run the test suite:

```
composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance91

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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 ~2 days

Total

5

Last Release

44d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2affac64f2726a640084b203503518ca01f582536d60a0a299b614486ed95aaa?d=identicon)[miguelenes](/maintainers/miguelenes)

---

Top Contributors

[![miguelenes](https://avatars.githubusercontent.com/u/1568086?v=4)](https://github.com/miguelenes "miguelenes (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

laravelhealthmaililluma-law

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/illuma-law-healthcheck-mail/health.svg)

```
[![Health](https://phpackages.com/badges/illuma-law-healthcheck-mail/health.svg)](https://phpackages.com/packages/illuma-law-healthcheck-mail)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

88011.3M149](/packages/spatie-laravel-health)[laravel/ai

The official AI SDK for Laravel.

9782.1M153](/packages/laravel-ai)[propaganistas/laravel-disposable-email

Disposable email validator

6012.9M7](/packages/propaganistas-laravel-disposable-email)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

436834.4k1](/packages/clickbar-laravel-magellan)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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