dena-a / laravel-elastic-email by dena-a

Wrapper for Elastic Email HTTP api to send mails using laravel
5,108
8
2
Package Data
Maintainer Username: dena-a
Maintainer Contact: dena.ajdari@gmail.com (Dena Ajdari)
Package Create Date: 2017-02-22
Package Last Update: 2017-12-13
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-07 15:00:15
Package Statistics
Total Downloads: 5,108
Monthly Downloads: 27
Daily Downloads: 1
Total Stars: 8
Total Watchers: 2
Total Forks: 4
Total Open Issues: 1

Laravel Elastic Email

A simple plugin to allow sending emails through Elastic E-Mail

Installation

You can add Laravel Elastic Email as a dependency using the composer CLI:

$ composer require dena-a/laravel-elastic-email

For Laravel 5.1 - 5.3 add the package to your composer.json and run composer update.

"require": {
	"dena-a/laravel-elastic-email": "1.0.3"
},

Next add the following to your config/services.php

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

and add the correct values to your .env file.

Third disable the laravel default MailServiceProvider in config/app.php and add the new ServiceProvider

'providers' => [
    ...
    Dena\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 was constructed to work exactly the same as the normal laravel mailers and thus usage is the same. For more information regarding sending email through laravel see the Laravel Documentation

License

The MIT License (MIT). Please see License File for more information.