PHPackages                             mailjet/laravel-mailjet - 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. [Framework](/categories/framework)
4. /
5. mailjet/laravel-mailjet

ActiveLibrary[Framework](/categories/framework)

mailjet/laravel-mailjet
=======================

Laravel package for Mailjet API V3 and Laravel Mailjet Mail Transport

3.1.3(2mo ago)1111.5M↓11.1%96[2 PRs](https://github.com/mailjet/laravel-mailjet/pulls)2MITPHPPHP ^7.4|^8.0CI failing

Since Jun 29Pushed 2mo ago6 watchersCompare

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

READMEChangelog (10)Dependencies (18)Versions (26)Used By (2)

Laravel Mailjet
===============

[](#laravel-mailjet)

[![Build Status](https://camo.githubusercontent.com/aa45e58278987c5446f89caa8f7739a9003937febce1cdd35bd97f50ebd36b21/68747470733a2f2f7472617669732d63692e6f72672f6d61696c6a65742f6c61726176656c2d6d61696c6a65742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mailjet/laravel-mailjet)[![Packagist](https://camo.githubusercontent.com/1dfbacded144fbeb7eaa3cc1e1c42c3d18a06cb9e95aa23c7aed7bc87381d362/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61696c6a65742f6c61726176656c2d6d61696c6a65742e737667)](https://packagist.org/packages/mailjet/laravel-mailjet)[![Packagist](https://camo.githubusercontent.com/b3d3936656ed02423bd9f636a15b1bcaba780e1234d3abcf15f185b4a2a8f6c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61696c6a65742f6c61726176656c2d6d61696c6a65742e737667)](https://packagist.org/packages/mailjet/laravel-mailjet)[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/mailjet/laravel-mailjet/blob/master/LICENSE.md)[![Documentation](https://camo.githubusercontent.com/bfd57f9d8fe91e4995e5a9d69651210d8cc5f16a9f14646f2c72e03885510804/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d67682d2d70616765732d626c75652e737667)](https://mailjet.github.io/laravel-mailjet/)

Laravel package for handling Mailjet API v3 using this wrapper:

It also provides a mailjetTransport for [Laravel mail feature](https://laravel.com/docs/master/mail)

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

[](#installation)

First, include the package in your dependencies:

```
composer require mailjet/laravel-mailjet

```

Then, you need to add some informations in your configuration files. You can find your Mailjet API key/secret [here](https://app.mailjet.com/account/api_keys). Please also set your email from address and name.

- In the providers array:

```
'providers' => [
    ...
    Mailjet\LaravelMailjet\MailjetServiceProvider::class,
    ...
]
```

Laravel 11.0+
-------------

[](#laravel-110)

In the file `example-app/bootstrap/providers.php`

```
use Mailjet\LaravelMailjet\MailjetServiceProvider;

return [
    App\Providers\AppServiceProvider::class,
    MailjetServiceProvider::class,
];
```

> **Note:** The `Mailjet` alias is registered automatically via [Package Auto-Discovery](https://laravel.com/docs/packages#package-discovery). No manual alias configuration needed — just use `use Mailjet\LaravelMailjet\Facades\Mailjet;` in your code.

- In the aliases array (Laravel 10 and below):

```
'aliases' => [
    ...
    'Mailjet' => Mailjet\LaravelMailjet\Facades\Mailjet::class,
    ...
]
```

- In the services.php file:

```
'mailjet' => [
    'key' => env('MAILJET_APIKEY'),
    'secret' => env('MAILJET_APISECRET'),
    'sandbox' => filter_var(env('MAILJET_SANDBOX', false), FILTER_VALIDATE_BOOLEAN),
]
```

- In your .env file:

```
MAILJET_APIKEY=YOUR_APIKEY
MAILJET_APISECRET=YOUR_APISECRET
MAIL_FROM_ADDRESS=YOUR_EMAIL_FROM_ADDRESS
MAIL_FROM_NAME=YOU_FROM_NAME
# Optional: Enable sandbox mode for testing (emails won't be actually sent)
MAILJET_SANDBOX=false
```

Full configuration
------------------

[](#full-configuration)

For details head to [configuration doc](docs/configuration.md).

Mail driver configuration
-------------------------

[](#mail-driver-configuration)

In order to use Mailjet as your Mail driver, you need to update the mail driver in your `config/mail.php` or your `.env` file to `MAIL_MAILER=mailjet` (for Laravel 6 and older use MAIL\_DRIVER constant instead), and make sure you are using a valid and authorised from email address configured on your Mailjet account. The sending email addresses and domain can be managed [here](https://app.mailjet.com/account/sender)

For Laravel 7+ you also need to specify new available mail driver in config/mail.php:

```
'mailers' => [
    ...

    'mailjet' => [
        'transport' => 'mailjet',
    ],
],

```

For usage, please check the [Laravel mail documentation](https://laravel.com/docs/master/mail)

Usage
-----

[](#usage)

In order to usage this package, you first need to import Mailjet Facade in your code:

```
use Mailjet\LaravelMailjet\Facades\Mailjet;

```

Then, in your code you can use one of the methods available in the MailjetServices.

Low level API methods:

- `Mailjet::get($resource, $args, $options)`
- `Mailjet::post($resource, $args, $options)`
- `Mailjet::put($resource, $args, $options)`
- `Mailjet::delete($resource, $args, $options)`

High level API methods:

- `Mailjet::getAllLists($filters)`
- `Mailjet::createList($body)`
- `Mailjet::getListRecipients($filters)`
- `Mailjet::getSingleContact($id)`
- `Mailjet::createContact($body)`
- `Mailjet::createListRecipient($body)`
- `Mailjet::editListrecipient($id, $body)`

For more informations about the filters you can use in each methods, refer to the [Mailjet API documentation](https://dev.mailjet.com/email-api/v3/apikey/)

All method return `Mailjet\Response` or throw a `MailjetException` in case of API error.

You can also get the Mailjet API client with the method `getClient()` and make your own custom request to Mailjet API.

If you need to delete a contact, you need to register ContactsServiceProvider:

- In the providers array:

```
'providers' => [
    ...
    \Mailjet\LaravelMailjet\Providers\ContactsServiceProvider::class,
    ...
]
```

and use it:

```
public function handle(ContactsV4Service $contactsV4Service)
{
    $response = $contactsV4Service->delete(351406781);
    ...
}
```

###  Health Score

67

—

FairBetter than 100% of packages

Maintenance84

Actively maintained with recent releases

Popularity58

Moderate usage in the ecosystem

Community34

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor4

4 contributors hold 50%+ of commits

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

Recently: every ~146 days

Total

19

Last Release

81d ago

Major Versions

1.1.0 → 2.0.02019-06-17

1.1.1 → 2.1.12020-11-09

2.1.3 → 3.0.02021-02-26

PHP version history (5 changes)1.0.0PHP &gt;=5.6.4

2.0.0PHP &gt;=7.1.3

2.1.1PHP ^7.1.3

3.0.0PHP ^7.1.3|^8.0

3.1.0PHP ^7.4|^8.0

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/4d548d1bdf378fe73450385ec4803019048649614a5140efd9a2408c49ff5e39?d=identicon)[mskochev](/maintainers/mskochev)

![](https://www.gravatar.com/avatar/860b87c56fb71609580e16a19de8d764f63601a86d894f5f18cdf8c40c0fbf55?d=identicon)[Nightbr](/maintainers/Nightbr)

---

Top Contributors

[![oleksandr-mykhailenko](https://avatars.githubusercontent.com/u/9269550?v=4)](https://github.com/oleksandr-mykhailenko "oleksandr-mykhailenko (12 commits)")[![Nightbr](https://avatars.githubusercontent.com/u/4228646?v=4)](https://github.com/Nightbr "Nightbr (11 commits)")[![mshcherb](https://avatars.githubusercontent.com/u/101879969?v=4)](https://github.com/mshcherb "mshcherb (10 commits)")[![TheDoctor0](https://avatars.githubusercontent.com/u/16612504?v=4)](https://github.com/TheDoctor0 "TheDoctor0 (10 commits)")[![uavn](https://avatars.githubusercontent.com/u/315338?v=4)](https://github.com/uavn "uavn (9 commits)")[![skalero01](https://avatars.githubusercontent.com/u/2976641?v=4)](https://github.com/skalero01 "skalero01 (5 commits)")[![mskochev](https://avatars.githubusercontent.com/u/23452885?v=4)](https://github.com/mskochev "mskochev (4 commits)")[![mitomitov](https://avatars.githubusercontent.com/u/30122299?v=4)](https://github.com/mitomitov "mitomitov (3 commits)")[![mahdiabderraouf](https://avatars.githubusercontent.com/u/44200782?v=4)](https://github.com/mahdiabderraouf "mahdiabderraouf (2 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![ConnySjoblom](https://avatars.githubusercontent.com/u/34518404?v=4)](https://github.com/ConnySjoblom "ConnySjoblom (2 commits)")[![Pavlico](https://avatars.githubusercontent.com/u/45973917?v=4)](https://github.com/Pavlico "Pavlico (2 commits)")[![zeefarmer](https://avatars.githubusercontent.com/u/13837388?v=4)](https://github.com/zeefarmer "zeefarmer (1 commits)")[![arnaudbreton](https://avatars.githubusercontent.com/u/1361191?v=4)](https://github.com/arnaudbreton "arnaudbreton (1 commits)")[![jdecool](https://avatars.githubusercontent.com/u/433926?v=4)](https://github.com/jdecool "jdecool (1 commits)")[![limonte](https://avatars.githubusercontent.com/u/6059356?v=4)](https://github.com/limonte "limonte (1 commits)")[![tigitz](https://avatars.githubusercontent.com/u/1524501?v=4)](https://github.com/tigitz "tigitz (1 commits)")[![ams-ryanolson](https://avatars.githubusercontent.com/u/46386725?v=4)](https://github.com/ams-ryanolson "ams-ryanolson (1 commits)")

---

Tags

emaillaravellaravel54mailjetmailjet-apipackagistphptransactional-emailsframeworklaraveltransportMailjetmailjet wrappermailjet API

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mailjet-laravel-mailjet/health.svg)

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

###  Alternatives

[thedoctor0/laravel-mailjet-driver

Laravel mail driver package for Mailjet and wrapper for its API

33237.9k1](/packages/thedoctor0-laravel-mailjet-driver)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)[kompo/kompo

Laravel &amp; Vue.js FullStack Components for Rapid Application Development

11812.4k21](/packages/kompo-kompo)

PHPackages © 2026

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