yaofong / laravel-elastic-email by yaofong
forked from chocoholics/laravel-elastic-email

A Laravel wrapper for Elastic Email
36
1
2
Package Data
Maintainer Username: yaofong
Maintainer Contact: yaofong@artisan.com.my
Package Create Date: 2017-09-12
Package Last Update: 2017-09-13
Language: PHP
License: MIT
Last Refreshed: 2024-05-04 15:13:15
Package Statistics
Total Downloads: 36
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

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.