Enable batch sending of Mailgun transport for Laravel
Laravel supports Mailgun transport, however it does not support the batch sending feature. Developers had to use Mailgun SDK for this. With this package, developers will be able to keep using Mailable classes with Mailgun batch sending.
composer require "leondeng/laravel-batch-mailgun"
After adding the package, replace the official MailServiceProvider in the providers array in config/app.php
Illuminate\Mail\MailServiceProvider::class
with
LeonDeng\LaravelBatchMailgun\MailServiceProvider::class
Then add batch_sending flag in config/mail.php
'batch_sending' => env('MAIL_BATCH_SENDING', false),
Then set the env variable MAIL_BATCH_SENDING
fro your environment.
This package is licensed under the MIT license.