chocoholics / laravel-elastic-email
A Laravel wrapper for Elastic Email
Installs: 7 214
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 4
Forks: 15
Open Issues: 5
Requires
- guzzlehttp/guzzle: >=6.3
- laravel/framework: 5.1.x|5.2.x|5.3.x|5.4.x|5.5.x|5.6.x|5.7.x|5.8.x|6.*
README
A Laravel wrapper for Elastic Email
Installation
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, Chocoholics\LaravelElasticEmail\MailServiceProvider::class, ... ],
Finally switch your default mail provider to elastic email in your .env file by setting MAIL_DRIVER=elastic_email
Usage
This package works exactly like Laravel's native mailers. Refer to Laravel's Mail documentation.