gentor/laravel-elastic-email

Package for send emails with attachments via elastic email driver
4,719
Install
composer require gentor/laravel-elastic-email
Latest Version:v1.3.5
PHP:>=7.0.0
License:MIT
Last Updated:Feb 10, 2025
Links: GitHub  ·  Packagist
Maintainer: gentor

Laravel Elastic Email

A Laravel wrapper for Elastic Email

Can send emails with multiple attachments

IMPORTANT

Laravel version

5.5 or older - Use Version 1.1.1

5.6 and forwards - Use version 1.3

Installation

  • Step 1

Install package via composer

composer require gentor/laravel-elastic-email
  • Step 2

Add this code to .env file

ELASTIC_ACCOUNT=<Add your account>
ELASTIC_KEY=<Add your key>
  • Step 3

Update MAIL_DRIVER value as 'elastic_email' in your .env file

MAIL_DRIVER=elastic_email
  • Step 4

Add this code to your config/services.php file

'elastic_email' => [
	'key' => env('ELASTIC_KEY'),
	'account' => env('ELASTIC_ACCOUNT')
]
  • Step 5

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,
    Gentor\LaravelElasticEmail\LaravelElasticEmailServiceProvider::class,
    ...
],

Usage

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

https://laravel.com/docs/5.5/mail

Code Example

Mail::to($request->user())->send(new OrderShipped($order));

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.

73,501 16
chocoholics/laravel-elastic-email

A Laravel wrapper for Elastic Email

7,407 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,733 0