yaofong/laravel-elastic-email
Laravel Elastic Email
A Laravel wrapper for Elastic Email (Support up to Laravel 5.5)
Installation
Add Laravel Elastic Email as a dependency using the composer CLI:
composer require yaofong/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 and add the following
'providers' => [
/*
* Laravel Framework Service Providers...
*/
...
// Illuminate\Mail\MailServiceProvider::class,
ArtisanMY\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.
Related Packages
Package for send emails with attachments via elastic email driver
Laravel exception notifier will send an email of of the error along with the sta...
Laravel style wrapper for https://github.com/NeverBounce/NeverBounceAPI-PHP