PHPackages                             gringlas/cakephp-mailjet-transport - 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. gringlas/cakephp-mailjet-transport

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

gringlas/cakephp-mailjet-transport
==================================

MailJet Mailer transporter for cakePHP3.

1.1.0(5y ago)0542MITPHPPHP &gt;=5.6CI failing

Since Jun 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/gringlas/cakephp-mailjet-transport)[ Packagist](https://packagist.org/packages/gringlas/cakephp-mailjet-transport)[ RSS](/packages/gringlas-cakephp-mailjet-transport/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (5)Used By (0)

CakePHP 3 MailJet MailerTransport
=================================

[](#cakephp-3-mailjet-mailertransport)

This plugin provides a simple MailJet Transport for use with cakePHP 3.

How To Use
==========

[](#how-to-use)

It is recommended to use cakePHPs Mailer classes. At first add the MailJetTransport to your `app.php`

```
'EmailTransport' => [
        'default' => [
            'className' => 'gringlas\MailJetTransport\Mailer\MailJetTransport',
        ]
    ],

```

Also add your credentials to your `app.php`

```
/**
     * MailJet credentials
     *
     * - key - MailJet Api key
     * - 'secret' - MailJet Api secret
     * - mailJetKeyInTemplateVars - if set to true templateVars from MailJet key will be taken and sent to MailJet,
     * otherwise send complete templateVars
     *
     */
    'MailJet' => [
        'key' => '1231sdasd',
        'secret' => 'asdasd123123',
        'mailJetKeyInTemplateVars' => false
    ],

```

To log responses from mailJet api please add logger to `app.php`

```
/**
* logging mailJet messages
*/
'mailJet' => [
    'className' => 'Cake\Log\Engine\FileLog',
    'path' => LOGS,
    'file' => 'mailJet',
    'url' => env('LOG_JETQUERIES_URL', null),
    'scopes' => ['mailJet']
],

```

In your email profiles use `TemplateID` for the MailJet transactional template.

If you using `Email` in `app.php` :

```
'Email' => [

    'passwordreset' => [
        'TemplateID' => 1234,
        'subject' => 'Password Reset'
    ]
]

```

You can also add the `TemplateID` directly in a Mailer by calling `setProfile()`. If `mailJetKeyInTemplateVars` is set, provode template vars with `setViewVars()` in `MailJet` key, otherwise simply all vars will be sent to MailJet:

```
public function passwordreset() {
    return $this
        ->setProfile([
            'TemplateID' => 1234
        ])
        ->setViewVars([
            'newPassword' => 'a192ja',
            'MailJet' => [
                'newPassword' => 'a192ja'
            ]
        ])
        ->setSubject('Password reset');
}

```

Only TemplateVariables are getting sent to MailJet API. Subject, from, ... are all have to get configured in MailJet Templates. So you can easily switch back to cakePHPs default `MailTransport`.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

4

Last Release

2152d ago

Major Versions

0.0.2 → 1.0.02020-06-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/356d738a5d09929aad45e38c6fbadf4faee0dc15538355af2c65b37f07180561?d=identicon)[gringlas](/maintainers/gringlas)

---

Top Contributors

[![gringlas](https://avatars.githubusercontent.com/u/4557329?v=4)](https://github.com/gringlas "gringlas (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gringlas-cakephp-mailjet-transport/health.svg)

```
[![Health](https://phpackages.com/badges/gringlas-cakephp-mailjet-transport/health.svg)](https://phpackages.com/packages/gringlas-cakephp-mailjet-transport)
```

###  Alternatives

[mailjet/mailjet-swiftmailer

A SwiftMailer transport implementation for Mailjet

261.2M9](/packages/mailjet-mailjet-swiftmailer)

PHPackages © 2026

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