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

Abandoned → [symfony/sendinblue-mailer](/?search=symfony%2Fsendinblue-mailer)ArchivedLibrary[Mail &amp; Notifications](/categories/mail)

webup/laravel-sendinblue
========================

Laravel's mail transport for SendinBlue

v3.5.0(3y ago)118530.3k—7.6%37MITPHP

Since Apr 21Pushed 3y ago11 watchersCompare

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

READMEChangelog (7)Dependencies (4)Versions (23)Used By (0)

DEPRECATED
==========

[](#deprecated)

[![maintenance-status](https://camo.githubusercontent.com/a9b9316b0dd923c93b326ea82f12466136f253ede16b6ff8b787945e0bf17b74/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e74656e616e63652d646570726563617465642d7265642e737667)](https://camo.githubusercontent.com/a9b9316b0dd923c93b326ea82f12466136f253ede16b6ff8b787945e0bf17b74/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e74656e616e63652d646570726563617465642d7265642e737667)[![No Maintenance Intended](https://camo.githubusercontent.com/d904056147052e22d8e1c7f46bb50293ed2aeb4c43ead9a2d0cf7a48b46d0562/687474703a2f2f756e6d61696e7461696e65642e746563682f62616467652e737667)](http://unmaintained.tech/)

As of April 2023 this repo is deprecated and unmaintained.

Since Laravel 9, there is official support for Sendinblue as a regular mail transport thanks to [symfony/sendinblue-mailer](https://github.com/symfony/sendinblue-mailer). It supports SiB through API and SMTP, with templates, tags, and custom headers. Because Laravel 8 has reached its [end of life](https://laravel.com/docs/10.x/releases#support-policy), the official support has now become the new default.

You can find more about how to use it inside your Laravel project in the [Laravel documentation](https://laravel.com/docs/9.x/mail#additional-symfony-transports).

For any need beyond beyond that, use Sendinblue's official [PHP SDK](https://github.com/sendinblue/APIv3-php-library).

Feel free to fork this repository if you need to modify it for legacy reasons.

Special thanks to the wonderful contributors that kept this project standing over the years 🙏. You rock 🤘

Summary
-------

[](#summary)

- [laravel-sendinblue](#laravel-sendinblue)
    - [Summary](#summary)
    - [Installation](#installation)
    - [Configuration](#configuration)
    - [Usage with Sendinblue templates](#usage-in-mailable-with-template-id)
    - [Regarding additional features](#regarding-additional-features)

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

[](#installation)

```
composer require webup/laravel-sendinblue
```

**Compatibility**

VersionLaravelSendinblue Api3.\*7.0 and abovev32.\*5.5 - 6.\*v31.1.\*5.5 - 6.\*v21.0.\*5.0 - 5.4v2Configuration
-------------

[](#configuration)

> `config/mail.php`

```
    'mailers' => [
        // ...
        'sendinblue' => [
            'transport' => 'sendinblue',
        ],
    ]
```

> `config/services.php`

```
    'sendinblue' => [
        // api-key or partner-key
        'key_identifier' => env('SENDINBLUE_KEY_IDENTIFIER', 'api-key'),
        'key' => env('SENDINBLUE_KEY'),
    ],
```

> `.env`

```
MAIL_MAILER=sendinblue
SENDINBLUE_KEY=your-access-key

# if you need to set the guzzle proxy config
# those are example values
HTTP_PROXY="tcp://localhost:8125"
HTTPS_PROXY="tcp://localhost:9124"
NO_PROXY=.mit.edu,foo.com

```

Usage in Mailable with Template Id
----------------------------------

[](#usage-in-mailable-with-template-id)

Using the `sendinblue()` method you may pass extra fields listed below. All fields are optional:

- `template_id` (integer)
- `tags` (array)
- `params` (array)

If you want to use the subject defined in the template, it's necessary to pass the `SendinBlueTransport::USE_TEMPLATE_SUBJECT` placeholder in the `subject()`. You may as well override the subject text here. Otherwise, without the `subject()` method, the subject will be derived from the class name.

Mailable requires a view - pass an empty array in the `view()` method.

```
