LaravelPackages.net
Acme Inc.
Toggle sidebar
leondeng/laravel-batch-mailgun

Enable batch sending of Mailgun transport for Laravel

16.574
5
v3.0.0
About leondeng/laravel-batch-mailgun

leondeng/laravel-batch-mailgun is a Laravel package for enable batch sending of mailgun transport for laravel. It currently has 5 GitHub stars and 16.574 downloads on Packagist (latest version v3.0.0). Install it with composer require leondeng/laravel-batch-mailgun. Discover more Laravel packages by leondeng or browse all Laravel packages to compare alternatives.

Last updated

Laravel Batch Sending Emails With Mailgun

Enable batch sending of Mailgun transport for Laravel

Background

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.

Usage

Require this package

composer require "leondeng/laravel-batch-mailgun"

Configuration

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.

License

This package is licensed under the MIT license.

Comments