<commit_before># 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:

```bash
composer require comyoo/laravel-elastic-email
```

Next add the following to your config/services.php
```php
'elastic_email' => [
	'secret' => env('ELASTIC_SECRET'),
	'username' => env('ELASTIC_USERNAME')
]
```
and add the correct values to your .env file.

Third disable the laravel default MailServiceProvider in config/app.php and add the new ServiceProvider
```php
'providers' => [
    /*
     * Laravel Framework Service Providers...
     */
    ...
//    Illuminate\Mail\MailServiceProvider::class,
    Comyoo\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](https://laravel.com/docs/master/mail)<commit_msg>Added laravel version support info<commit_after># 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:

```bash
composer require comyoo/laravel-elastic-email
```

Next add the following to your config/services.php
```php
'elastic_email' => [
	'secret' => env('ELASTIC_SECRET'),
	'username' => env('ELASTIC_USERNAME')
]
```
and add the correct values to your .env file.

Third disable the laravel default MailServiceProvider in config/app.php and add the new ServiceProvider
```php
'providers' => [
    /*
     * Laravel Framework Service Providers...
     */
    ...
//    Illuminate\Mail\MailServiceProvider::class,
    Comyoo\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](https://laravel.com/docs/master/mail)

This should work in Laravel 5.1 and up.
{'fraction_non_alphanumeric': 0.09701492537313433, 'fraction_numerical': 0.0008291873963515755, 'mean_word_length': 4.291666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5945425', 'n_tokens_mistral': 710, 'n_tokens_neox': 674, 'n_words': 259}