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

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

hexium/laravel-sendinblue
=========================

Laravel's mail transport for SendinBlue

1634PHP

Since Nov 6Pushed 3y agoCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

laravel-sendinblue
==================

[](#laravel-sendinblue)

Laravel's mail transport for SendinBlue forked from [agence-webup/laravel-sendinblue](https://github.com/agence-webup/laravel-sendinblue).

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)
- `attachment` (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.

If you fill the `attachment` key in the `sendinblue()` method that will override attachment added with the laravel `attach` methods.

```
