| Package Data | |
|---|---|
| Maintainer Username: | FoxxMD |
| Maintainer Contact: | FoxxMD@users.noreply.github.com (FoxxMD) |
| Package Create Date: | 2016-12-21 |
| Package Last Update: | 2020-12-11 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-26 03:13:56 |
| Package Statistics | |
|---|---|
| Total Downloads: | 10,820 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Add some extra functionality to your mail flow
This package extends Laravel 5 Mail by adding:
I'm sure I will be adding more in the future, but that's it for now!
Require this package
composer require "foxxmd/laravel-mail-extras"
After adding the package, add the ServiceProvider to the providers array in config/app.php
\FoxxMD\LaravelMailExtras\LaravelMailExtrasServiceProvider::class,
Simply add this new key/value anywhere in config/mail.php to set the number of retry attempts:
'retries' => 3
It defaults to 0 if not present (normal behavior)
Default behavior for throwing exceptions is also configurable.
'exceptions' => [
'mailFailure' => true, // will throw a MailFailureExeption if any exception is thrown during sending mail
'deliveryFailure' => false // will throw a MailDeliveryException if any recipients fail to recieve mail during delivery
]
These parameters can be overridden using the send method
EX Mail::send($view, $data, $callback, $throwOnMailFailure, $throwOnDeliveryFailure)
New functionality is welcomed! Create an issue or submit a PR :)
This package is licensed under the MIT license.