PHPackages                             lennaert/cakephp3-mandrill - 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. lennaert/cakephp3-mandrill

ActiveCakephp-plugin[Mail &amp; Notifications](/categories/mail)

lennaert/cakephp3-mandrill
==========================

Mandrill Email Transport for CakePHP 3

97.5k↓100%11[1 issues](https://github.com/Lennaert/cakephp3-mandrill/issues)PHP

Since Apr 18Pushed 6y ago3 watchersCompare

[ Source](https://github.com/Lennaert/cakephp3-mandrill)[ Packagist](https://packagist.org/packages/lennaert/cakephp3-mandrill)[ RSS](/packages/lennaert-cakephp3-mandrill/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CakePHP 3 Mandrill plugin
=========================

[](#cakephp-3-mandrill-plugin)

This is a Mandrill Email Transport plugin for CakePHP 3. To use, you'll need to have an active Mandrill account, set up with the email address you'll be sending from, and an API `key`.

To install this plugin, you're best off using composer. Add:

```
"lennaert/cakephp3-mandrill": "*"

```

to your `composer.json` file and run.

Setting up your CakePHP application
-----------------------------------

[](#setting-up-your-cakephp-application)

CakePHP uses [profiles and transports](http://book.cakephp.org/3.0/en/core-libraries/email.html#configuration) to set up your email configuration. In your configuration file (`app.php` or your own), add configuration arrays for the Mandrill profile and transport. The profile (first array) is the default settings for any Mandrill email, which keeps your email settings DRY. The second array is the Transport config, telling Cake where to find and how to use the Mandrill plugin. [There are many more options you can set in the profile array below](http://book.cakephp.org/3.0/en/core-libraries/email.html#configuration-profiles).

```
'Email' => [
    'Mandrill' => [
        'template' => 'default',
        'layout' => 'default',
        'transport' => 'Mandrill',
        'emailFormat' => 'both',
        'from' => ['you@yours.com' => 'Bob Bobbington'],
        'sender' => ['you@yours.com' => 'Bob Bobbington'],
        'Mandrill' => [
            'preserve_recipients' => true
        ]
    ]
],
'EmailTransport' => [
    'Mandrill' => [
        'className' => 'MandrillEmail\Network\Email\MandrillTransport',
        'host' => 'smtp.mandrillapp.com',
        'key' => '-----your-key-here-----'
    ]
]

```

Sending some emails
-------------------

[](#sending-some-emails)

Add the namespaces for emails and Mandrill:

```
use MandrillEmail\Network\Email\MandrillTransport;
use Cake\Network\Email\Email;

```

Then, create an Email, tell it which profile to use, tell it where to go and that's it!

```
$emailObject
    ->subject('Mandrill sends emails')
    ->profile('Mandrill') // This is the profile you set above, in your config file
    ->to('me@mine.com', 'Mary Maristone')
    ->send();

```

If you're having trouble sending emails, make sure your `from` address is the email address set up in Mandrill.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 62.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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a35a9da8505eefe9cc3ab5a615d198e75a0e9df94eb4659d1b5dd5973ea531f7?d=identicon)[Lennaert](/maintainers/Lennaert)

---

Top Contributors

[![Lennaert](https://avatars.githubusercontent.com/u/433530?v=4)](https://github.com/Lennaert "Lennaert (15 commits)")[![jaydenireland](https://avatars.githubusercontent.com/u/719397?v=4)](https://github.com/jaydenireland "jaydenireland (2 commits)")[![Jonatanmdez](https://avatars.githubusercontent.com/u/6991527?v=4)](https://github.com/Jonatanmdez "Jonatanmdez (2 commits)")[![kburton-dev](https://avatars.githubusercontent.com/u/10101978?v=4)](https://github.com/kburton-dev "kburton-dev (2 commits)")[![wvdongen](https://avatars.githubusercontent.com/u/1862615?v=4)](https://github.com/wvdongen "wvdongen (1 commits)")[![Iandenh](https://avatars.githubusercontent.com/u/2911923?v=4)](https://github.com/Iandenh "Iandenh (1 commits)")[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (1 commits)")

### Embed Badge

![Health badge](/badges/lennaert-cakephp3-mandrill/health.svg)

```
[![Health](https://phpackages.com/badges/lennaert-cakephp3-mandrill/health.svg)](https://phpackages.com/packages/lennaert-cakephp3-mandrill)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M52](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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