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

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

jonatanmdez/cakephp3-mandrill
=============================

Mandrill Email Transport for CakePHP 3

0987PHP

Since Sep 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Optimiza-Click/cakephp3-mandrill)[ Packagist](https://packagist.org/packages/jonatanmdez/cakephp3-mandrill)[ RSS](/packages/jonatanmdez-cakephp3-mandrill/feed)WikiDiscussions master Synced 2w 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' => [] // Don't ask, the plugin needs/wants this empty array
    ]
],
'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

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.7% 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/240d49d5e0d48a94a09e3fd5acd4cc234c8e934f462c29fbf050a95d25f31c18?d=identicon)[jonatanmenendez](/maintainers/jonatanmenendez)

---

Top Contributors

[![Lennaert](https://avatars.githubusercontent.com/u/433530?v=4)](https://github.com/Lennaert "Lennaert (11 commits)")[![Jonatanmdez](https://avatars.githubusercontent.com/u/6991527?v=4)](https://github.com/Jonatanmdez "Jonatanmdez (3 commits)")[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (1 commits)")[![Iandenh](https://avatars.githubusercontent.com/u/2911923?v=4)](https://github.com/Iandenh "Iandenh (1 commits)")[![wvdongen](https://avatars.githubusercontent.com/u/1862615?v=4)](https://github.com/wvdongen "wvdongen (1 commits)")

### Embed Badge

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

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

###  Alternatives

[mattketmo/email-checker

Throwaway email detection library

2752.1M5](/packages/mattketmo-email-checker)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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