zanysoft/laravel-elastic-email

A Laravel wrapper for Elastic Email
2,211 3
Install
composer require zanysoft/laravel-elastic-email
Latest Version:2.0.1
PHP:^7.4|^8.0
License:MIT
Last Updated:Jul 3, 2026
Links: GitHub  ·  Packagist
Maintainer: mubasharahmad

Laravel Elastic Email

Latest Version on Packagist Software License Total Downloads

A Laravel wrapper for Elastic Email

Installation

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

composer require zanysoft/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 and ApiServiceProvider to the providers array

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

Next, in config/app.php, add the ElasticEmail to the aliases array

'aliases' => [
    ...
    'ElasticEmail' => ZanySoft\ElasticEmail\Facades\ElasticEmail::class,
    ...
],

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

MailService Usage

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

Api Usage

For documentation visit https://api.elasticemail.com/public/help


    //For contact
    ElasticEmail::Contact()

    //For emails
    ElasticEmail::Email()

Related Packages

yaofong/laravel-elastic-email

A Laravel wrapper for Elastic Email

36 1
flexflux/laravel-elastic-email

Package to send emails with attachements via an Elastic Email Mailer.

78,220 16
chocoholics/laravel-elastic-email

A Laravel wrapper for Elastic Email

7,413 8
rdanusha/laravel-elastic-email

Package for send emails with attachments via elastic email driver

14,512 11
ebethus/laravel-elastic-email-driver

A Laravel Elastic Email Driver

4,834 0

Version History

Version Released PHP Laravel License
2.0.1 ^7.4|^8.0 ^9.0|^10.0|^11.0|^12.0|^13.0 MIT
1.0.5 ^7.1|^8.0 ^6.0|^7.0|^8.0|^9.0 MIT
1.0.4 ^7.1 ~5.1|^6.0|~7.0 MIT
1.0.3 >=7.0.26 5.3.x|5.4.x|5.5.x|5.6.x MIT
1.0.2 5.1.x|5.2.x|5.3.x|5.4.x|5.5.x|5.6.x MIT