PHPackages                             spatie/laravel-mailcoach-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. spatie/laravel-mailcoach-mailer

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

spatie/laravel-mailcoach-mailer
===============================

The driver for sending transactional mails using Mailcoach in Laravel

1.6.0(2mo ago)25325.1k↓25.9%9[1 PRs](https://github.com/spatie/laravel-mailcoach-mailer/pulls)MITPHPPHP ^8.4CI passing

Since Dec 6Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/spatie/laravel-mailcoach-mailer)[ Packagist](https://packagist.org/packages/spatie/laravel-mailcoach-mailer)[ Docs](https://github.com/spatie/laravel-mailcoach-mailer)[ RSS](/packages/spatie-laravel-mailcoach-mailer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (25)Versions (18)Used By (0)

The driver for sending transactional mails using Mailcoach in Laravel
=====================================================================

[](#the-driver-for-sending-transactional-mails-using-mailcoach-in-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6670d48836ab0b0ee2984ab841e73860d4dd7fbfd88c3d26d61ee589232b6fcb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f6c61726176656c2d6d61696c636f6163682d6d61696c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-mailcoach-mailer)[![Total Downloads](https://camo.githubusercontent.com/198d9f03d4fb34a2ab1d628676da9f330332eda96a73beb76d675cf09f8936e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f6c61726176656c2d6d61696c636f6163682d6d61696c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-mailcoach-mailer)

[Mailcoach](https://mailcoach.app) is an affordable platform for all things mail. It can send campaigns to list of any size. It also provides flexible email automation to set up drip campaigns and more.

Finally, you can also use Mailcoach to send transactional mails. This package contains a driver so you can send any mailable through Mailcoach.

```
// will be sent through mailcoach

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

On [mailcoach.app](https://mailcoach.app), you can see an archive of sent mails.

[![screenshot](https://github.com/spatie/laravel-mailcoach-mailer/raw/main/docs/archive.jpg?raw=true)](https://github.com/spatie/laravel-mailcoach-mailer/blob/main/docs/archive.jpg?raw=true)

If you activated the feature, you can also see the opens and clicks of all transactional mails. It's also possible to resend any transactional mails straight from the Mailcoach UI.

Additionally, you'll also be able to create email templates on Mailcoach and use those templates in your app. This is great for marketeers without technical knowledge. They can now write mails without a developer needing to make any code changes.

This is how you would send a mail using a Mailcoach template.

```
public function build()
{
    $this
        ->mailcoachMail('name-of-your-mailcoach-template')
        ->replacing(['placeholderName' => 'placeHolderValue']);
}
```

If you want to send a mail notification using a mailcoach template, you can do that in the following way.

```
public function toMail()
{
    return (new MailCoachMessage())
        ->usingMail('name-of-your-mailcoach-template')
        ->replacing(['placeholderName' => 'placeHolderValue']);
}
```

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/dff2f3111cf270aa05c344d68d159a91e33529bd7e8a84263bf0ae19a0195c51/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d6d61696c636f6163682d6d61696c65722e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-mailcoach-mailer)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

Documentation
-------------

[](#documentation)

You'll find full documentation on [this page of the Mailcoach docs](https://mailcoach.app/resources/learn-mailcoach/features/transactional).

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

60

—

FairBetter than 99% of packages

Maintenance86

Actively maintained with recent releases

Popularity47

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 53.5% 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 ~91 days

Recently: every ~113 days

Total

14

Last Release

74d ago

PHP version history (2 changes)1.0.0PHP ^8.1

1.6.0PHP ^8.4

### Community

Maintainers

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

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (76 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (21 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (16 commits)")[![riasvdv](https://avatars.githubusercontent.com/u/3626559?v=4)](https://github.com/riasvdv "riasvdv (14 commits)")[![francoism90](https://avatars.githubusercontent.com/u/5028905?v=4)](https://github.com/francoism90 "francoism90 (4 commits)")[![Nielsvanpach](https://avatars.githubusercontent.com/u/10651054?v=4)](https://github.com/Nielsvanpach "Nielsvanpach (3 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (3 commits)")[![AlexVanderbist](https://avatars.githubusercontent.com/u/6287961?v=4)](https://github.com/AlexVanderbist "AlexVanderbist (2 commits)")[![gdebrauwer](https://avatars.githubusercontent.com/u/22586858?v=4)](https://github.com/gdebrauwer "gdebrauwer (2 commits)")[![timmydhooghe](https://avatars.githubusercontent.com/u/63366355?v=4)](https://github.com/timmydhooghe "timmydhooghe (1 commits)")

---

Tags

mailmailcoachsyfmony-mailertransactionalspatielaravelmailcoachlaravel-mailcoach-mailer

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/spatie-laravel-mailcoach-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/spatie-laravel-mailcoach-mailer/health.svg)](https://phpackages.com/packages/spatie-laravel-mailcoach-mailer)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.8k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-newsletter

Manage Mailcoach and MailChimp newsletters in Laravel

1.6k6.3M26](/packages/spatie-laravel-newsletter)[spatie/laravel-notification-log

Log notifications sent by your Laravel app

207902.8k](/packages/spatie-laravel-notification-log)[spatie/laravel-discord-alerts

Send a message to Discord

151408.0k](/packages/spatie-laravel-discord-alerts)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[xammie/mailbook

Laravel Mail Explorer

482458.3k1](/packages/xammie-mailbook)

PHPackages © 2026

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