Package for send emails with attachments via elastic email driver
kroon/laravel-elastic-email is a Laravel package for package for send emails with attachments via elastic email driver.
It currently has 0 GitHub stars and 27 downloads on Packagist (latest version v1.0.5).
Install it with composer require kroon/laravel-elastic-email.
Discover more Laravel packages by kroon
or browse all Laravel packages to compare alternatives.
Last updated
A Laravel wrapper for Elastic Email
Can send emails with multiple attachments
5.5 or older - Use Version 1.1.1
5.6 and forwards - Use version 1.2
Install package via composer
composer require kroon/laravel-elastic-email
Add this code to .env file
ELASTIC_ACCOUNT=<Add your account>
ELASTIC_KEY=<Add your key>
Update MAIL_DRIVER value as 'elastic_email' in your .env file
MAIL_DRIVER=elastic_email
Add this code to your config/services.php file
'elastic_email' => [
'key' => env('ELASTIC_KEY'),
'account' => env('ELASTIC_ACCOUNT')
]
Open config/app.php file and go to providers array, Then comment out Laravel's default MailServiceProvider and add the following
'providers' => [
/*
* Laravel Framework Service Providers...
*/
...
// Illuminate\Mail\MailServiceProvider::class,
Kroon\LaravelElasticEmail\LaravelElasticEmailServiceProvider::class,
...
],
This package works exactly like Laravel's native mailers. Refer to Laravel's Mail documentation.
https://laravel.com/docs/5.5/mail
Mail::to($request->user())->send(new OrderShipped($order));