A Laravel wrapper for Elastic Email

v0.0.13 2019-09-21 15:40 UTC

This package is auto-updated.

Last update: 2023-05-22 00:30:52 UTC


A Laravel wrapper for Elastic Email


Add Laravel Elastic Email as a dependency using the composer CLI:

composer require chocoholics/laravel-elastic-email

Next, add the following to your config/services.php and add the correct values to your .env file

'elastic_email' => [
	'key' => env('ELASTIC_KEY'),
	'account' => env('ELASTIC_ACCOUNT')

Next, in config/app.php, comment out Laravel's default MailServiceProvider. If using < Laravel 5.5, add the MailServiceProvider to the providers array

'providers' => [
     * Laravel Framework Service Providers...
//    Illuminate\Mail\MailServiceProvider::class,

Finally switch your default mail provider to elastic email in your .env file by setting MAIL_DRIVER=elastic_email


This package works exactly like Laravel's native mailers. Refer to Laravel's Mail documentation.