PHPackages                             skyracer2012/http-mail-driver - 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. skyracer2012/http-mail-driver

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

skyracer2012/http-mail-driver
=============================

A Mail driver that sends the email in a json format to a supplied endpoint

1.2.3(3y ago)1182MITPHPPHP &gt;=8.0

Since Mar 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/skyracer2012/HttpMailDriver)[ Packagist](https://packagist.org/packages/skyracer2012/http-mail-driver)[ Docs](https://github.com/skyracer2012/http-mail-driver)[ RSS](/packages/skyracer2012-http-mail-driver/feed)WikiDiscussions master Synced yesterday

READMEChangelog (6)Dependencies (4)Versions (7)Used By (0)

Laravel HTTP mail driver
========================

[](#laravel-http-mail-driver)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bdcbc63804dcabc8ef157275a5ed1190a40e60c6394363d228ddb73d6b13a2ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736b797261636572323031322f687474702d6d61696c2d6472697665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/skyracer2012/http-mail-driver)[![Total Downloads](https://camo.githubusercontent.com/2a2a29c1d9eacbe50f1df6f1f955aa743448f8cdb51dc6e77ef4a2ee1e6e1b64/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736b797261636572323031322f687474702d6d61696c2d6472697665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/skyracer2012/http-mail-driver)

This package gives your the ability to send emails via HTTP requests. This is useful for sending emails via Mailchannels and their Cloudflare Workers partnerships but can be used for other applications. Note: There is currently no support for attachments due to Mailchannels not supporting them via their transactional message api.

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

[](#installation)

You can install the package via composer:

```
composer require skyracer2012/http-mail-driver
```

After that, please set the value `HTTP_MAIL_URL` in your `.env` file to the URL of your HTTP Mail endpoint. You should also define the `HTTP_MAIL_KEY` in your `.env` file which will be used to authenticate your requests in the Authorization header.

```
HTTP_MAIL_URL=https://webhook.example.com
HTTP_MAIL_KEY=secret
```

Optionally you can also add DKIM data, which is useful for the mailchannels integration. See the config entry for further information. Make sure this matches your mail sender configuration to avoid dmarc issues!

```
HTTP_MAIL_DKIM_ENABLED=true
HTTP_MAIL_DKIM_DOMAIN=example.com
HTTP_MAIL_DKIM_SELECTOR=mailchannels
HTTP_MAIL_DKIM_PRIVATE_KEY=yourprivatkey
```

Next should should add the `http` entry to your `config/mail.php` file under the `mailers` array.

```
'mailers' => [
    // other mailers
    'http' => [
        'transport' => 'http',
        'url' => env('HTTP_MAIL_URL'),
        'key' => env('HTTP_MAIL_KEY'),
        //DKIM settings. Look at https://developers.cloudflare.com/pages/platform/functions/plugins/mailchannels/#dkim-support-for-mailchannels-api for more information
        'dkim_enabled' => env('HTTP_MAIL_DKIM_ENABLED', false), //Whether to enable DKIM in the database
        'dkim_domain' => env('HTTP_MAIL_DKIM_DOMAIN'), //The domain you are sending the email from.
        'dkim_selector' => env('HTTP_MAIL_DKIM_SELECTOR'), //Specifies where to find the associated public key in your DNS records
        'dkim_private_key' => env('HTTP_MAIL_DKIM_PRIVATE_KEY'), //The base-64 encoded private key.
    ],
],
```

Now you can set the default mailer to `http` in your `.env` file.

```
MAIL_MAILER=http
```

Cloudflare Mailchannel integration
----------------------------------

[](#cloudflare-mailchannel-integration)

> ⚠️ **Mailchannels now enforces Domain Lockdown™**: Please create DNS record according to [their help center article](https://support.mailchannels.com/hc/en-us/articles/16918954360845-Secure-your-domain-name-against-spoofing-with-Domain-Lockdown-)!

This package was made to work in combination with the Cloudflare Worker Mailchannels partnership. To use this, deploy a worker with the code of this gist:

Credits
-------

[](#credits)

- [skyracer2012](https://github.com/skyracer2012)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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 ~2 days

Total

6

Last Release

1210d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b7e13e28977afb4877670934fbce5c2486fb50a8b14a9330ac7c20b26e68a11?d=identicon)[skyracer2012](/maintainers/skyracer2012)

---

Top Contributors

[![skyracer2012](https://avatars.githubusercontent.com/u/31547155?v=4)](https://github.com/skyracer2012 "skyracer2012 (20 commits)")

---

Tags

http-mail-driverskyracer2012

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/skyracer2012-http-mail-driver/health.svg)

```
[![Health](https://phpackages.com/badges/skyracer2012-http-mail-driver/health.svg)](https://phpackages.com/packages/skyracer2012-http-mail-driver)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[illuminate/mail

The Illuminate Mail package.

5910.6M500](/packages/illuminate-mail)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)

PHPackages © 2026

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