PHPackages                             laravel-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. laravel-mailjet/laravel-mailjet

ActiveLibrary[Framework](/categories/framework)

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

Laravel package for Mailjet API V3 and Laravel Mailjet Mail Transport

3.2.3(1mo ago)2538↓44.5%MITPHPPHP ^7.4|^8.0CI passing

Since Mar 18Pushed 1mo ago1 watchersCompare

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

READMEChangelog (4)Dependencies (9)Versions (6)Used By (0)

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

[](#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 laravel-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

46

—

FairBetter than 92% of packages

Maintenance94

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor5

5 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 ~2 days

Total

4

Last Release

31d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1973411272db2d2a0561f3832781a1691b44677ca2b1dcd945b567776e6f0259?d=identicon)[sweetalert2](/maintainers/sweetalert2)

---

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)")[![limonte](https://avatars.githubusercontent.com/u/6059356?v=4)](https://github.com/limonte "limonte (10 commits)")[![TheDoctor0](https://avatars.githubusercontent.com/u/16612504?v=4)](https://github.com/TheDoctor0 "TheDoctor0 (10 commits)")[![mshcherb](https://avatars.githubusercontent.com/u/101879969?v=4)](https://github.com/mshcherb "mshcherb (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)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (1 commits)")[![jdecool](https://avatars.githubusercontent.com/u/433926?v=4)](https://github.com/jdecool "jdecool (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

frameworklaraveltransportMailjetmailjet wrappermailjet API

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mailjet/laravel-mailjet

Laravel package for Mailjet API V3 and Laravel Mailjet Mail Transport

1111.6M2](/packages/mailjet-laravel-mailjet)[laravel/laravel

The skeleton application for the Laravel framework.

84.4k62.4M1.0k](/packages/laravel-laravel)[thedoctor0/laravel-mailjet-driver

Laravel mail driver package for Mailjet and wrapper for its API

33254.2k1](/packages/thedoctor0-laravel-mailjet-driver)[unopim/unopim

UnoPim Laravel PIM

10.1k2.2k](/packages/unopim-unopim)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[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.

3861.7k](/packages/codewithdennis-larament)

PHPackages © 2026

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