ebethus/laravel-elastic-email-driver is a Laravel package for a laravel elastic email driver.
It currently has 0 GitHub stars and 4.559 downloads on Packagist (latest version 1.0.2).
Install it with composer require ebethus/laravel-elastic-email-driver.
Discover more Laravel packages by ebethus
or browse all Laravel packages to compare alternatives.
Last updated
A Laravel mail driver for Elastic Email service.
Install the package via Composer:
composer require ebethus/laravel-elastic-email-driver
Add the following configuration to your config/services.php:
'elastic_email' => [
'key' => env('ELASTIC_KEY'),
'account' => env('ELASTIC_ACCOUNT'),
],
Add your Elastic Email credentials to your .env file:
ELASTIC_KEY=your-elastic-email-api-key
ELASTIC_ACCOUNT=your-elastic-email-account
For Laravel 9+, update your config/mail.php to add the Elastic Email mailer:
'mailers' => [
// ... other mailers
'elastic_email' => [
'transport' => 'elastic_email',
],
],
Then set it as your default mailer in .env:
MAIL_MAILER=elastic_email
For older Laravel versions, set:
MAIL_DRIVER=elastic_email
This package integrates seamlessly with Laravel's mail system. Use Laravel's Mail facade as you normally would:
use Illuminate\Support\Facades\Mail;
use App\Mail\WelcomeEmail;
Mail::to('[email protected]')->send(new WelcomeEmail());
For more information on sending emails, refer to the Laravel Mail documentation.
This package is open-sourced software licensed under the MIT license.
For issues or questions, please contact [email protected].