PHPackages                             musabsalihin/engagelab-mailer - 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. musabsalihin/engagelab-mailer

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

musabsalihin/engagelab-mailer
=============================

Engagelab transport for Laravel Mail

0.1(1mo ago)01MITPHPPHP &gt;=8.0

Since May 27Pushed 1mo agoCompare

[ Source](https://github.com/musabsalihin/engagelab-mailer)[ Packagist](https://packagist.org/packages/musabsalihin/engagelab-mailer)[ RSS](/packages/musabsalihin-engagelab-mailer/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

EngageLab Mailer
================

[](#engagelab-mailer)

A custom [EngageLab](https://www.engagelab.com) mail transport for Laravel, built on top of Symfony Mailer.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0
- Laravel 10, 11, or 12
- `ext-curl`

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

[](#installation)

```
composer require musabsalihin/engagelab-mailer
```

The service provider is auto-discovered by Laravel. No manual registration needed.

Configuration
-------------

[](#configuration)

Add the following to your `.env` file and replace the `ENGAGELAB_MAIL_API_USER` and `ENGAGELAB_MAIL_API_KEY` with your own value:

```
ENGAGELAB_MAIL_URL=https://email.api.engagelab.cc
ENGAGELAB_MAIL_SANDBOX=true
ENGAGELAB_MAIL_API_USER=your-api-user
ENGAGELAB_MAIL_API_KEY=your-api-key
```

To enable the mail transporter in production, set `ENGAGELAB_MAIL_SANDBOX` to `false`. This is to safeguard the email is not sent by accident.

Add the `engagelab` mailer to `config/mail.php` under the `mailers` array:

```
'mailers' => [
    // ...

    'engagelab' => [
        'transport' => 'engagelab',
        'api_url' => env('ENGAGELAB_MAIL_URL', 'https://email.api.engagelab.cc'),
        'sandbox' => env('ENGAGELAB_MAIL_SANDBOX', true),
        'user' => env('ENGAGELAB_MAIL_API_USER'),
        'key' => env('ENGAGELAB_MAIL_API_KEY'),
    ],
],
```

Set `MAIL_MAILER=engagelab` in your `.env` to use it as the default mailer:

```
MAIL_MAILER=engagelab
```

Usage
-----

[](#usage)

Use Laravel Mail as you normally would:

```
use Illuminate\Support\Facades\Mail;

Mail::to('recipient@example.com')->send(new YourMailable());
```

### Constraints

[](#constraints)

- Only **1 sender** (`from` address) is allowed per message.
- A maximum of **100 recipients** (`to` addresses) are allowed per message.

### Sandbox Mode

[](#sandbox-mode)

Set `ENGAGELAB_MAIL_SANDBOX=true` in your `.env` to enable sandbox mode. Emails will be processed by EngageLab but not actually delivered — useful for testing.

Exception Handling
------------------

[](#exception-handling)

The package throws `EngagelabMailer\Exceptions\EngagelabMailerException` when the EngageLab API returns a non-200 response. The exception message includes the EngageLab error code and description.

```
use EngagelabMailer\Exceptions\EngagelabMailerException;

try {
    Mail::to('recipient@example.com')->send(new YourMailable());
} catch (EngagelabMailerException $e) {
    // $e->getMessage() — "[EngageLab]  ()"
    // $e->getCode()    — HTTP status code
}
```

License
-------

[](#license)

MIT. See [LICENSE.md](LICENSE.md).

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance88

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity28

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

Unknown

Total

1

Last Release

59d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/114023807?v=4)[musabsalihin](/maintainers/musabsalihin)[@musabsalihin](https://github.com/musabsalihin)

---

Top Contributors

[![musabsalihin](https://avatars.githubusercontent.com/u/114023807?v=4)](https://github.com/musabsalihin "musabsalihin (1 commits)")

---

Tags

laravelmailemailtransportEngagelab

### Embed Badge

![Health badge](/badges/musabsalihin-engagelab-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/musabsalihin-engagelab-mailer/health.svg)](https://phpackages.com/packages/musabsalihin-engagelab-mailer)
```

###  Alternatives

[railsware/mailtrap-php

The Mailtrap SDK provides methods for all API functions.

60929.1k](/packages/railsware-mailtrap-php)

PHPackages © 2026

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