PHPackages                             flexflux/laravel-elastic-email - 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. flexflux/laravel-elastic-email

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

flexflux/laravel-elastic-email
==============================

Package to send emails with attachements via an Elastic Email Mailer.

3.0.0(1w ago)1661.0k↓15%16MITPHP

Since Mar 19Pushed 1w ago2 watchersCompare

[ Source](https://github.com/wouterdeberg/laravel-elastic-email)[ Packagist](https://packagist.org/packages/flexflux/laravel-elastic-email)[ RSS](/packages/flexflux-laravel-elastic-email/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (2)Versions (13)Used By (0)

FlexFlux - Laravel Elastic Email
================================

[](#flexflux---laravel-elastic-email)

Laravel Elastic Email is a wrapper for Elastic Email. You can send e-mails in your project just like you usually do with Laravel's native mailers, the package makes sure the e-mails are send via the Elastic Email API using your Elastic Email account.

### Installation

[](#installation)

- Step 1: Install package via composer.

```
composer require flexflux/laravel-elastic-email
```

- Step 2: Add your account and API keys to your **.env file**.

```
ELASTIC_KEY=

```

- Step 3: Update **MAIL\_MAILER** with 'elastic\_email' in your **.env file**.

```
MAIL_MAILER=elastic_email

```

- Step 4: Add this new mailer to your **config/mail.php**\* file.

```
'mailers' => [
    ...
    'elastic_email' => [
        'transport' => 'elastic_email',
        'key' => env('ELASTIC_KEY')
    ],
    ...
],
```

- Step 5: In your **bootstrap/providers.php** file go to your providers array and add the following package provider:

```
