PHPackages                             emchooo/laravel-flymail - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. emchooo/laravel-flymail

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

emchooo/laravel-flymail
=======================

Send mails in laravel with custom config you can set on the fly

v1.0.1(6y ago)1501[1 issues](https://github.com/emchooo/laravel-flymail/issues)MITPHPPHP ^7.2CI failing

Since Feb 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/emchooo/laravel-flymail)[ Packagist](https://packagist.org/packages/emchooo/laravel-flymail)[ Docs](https://github.com/emchooo/laravel-flymail)[ RSS](/packages/emchooo-laravel-flymail/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Laravel Flymail
===============

[](#laravel-flymail)

About
-----

[](#about)

Laravel Flymail adds **Mail::config()** method to Laravel\\Mail. Config method will setup mail config data on the fly. Use Flymail if you need to send Mails with dynamic credentials you store in DB or other configs. Since it just extends Laravel's Mail and adds **config** method, everything else remains same.

Installation
------------

[](#installation)

```
composer require emchooo/laravel-flymail
```

Usage
-----

[](#usage)

```
use Illuminate\Support\Facades\Mail;

// get config file from DB or other source

// SES config
$config = [
	'driver' => 'ses',
	'key' => 'xxx',
	'secret' => 'xxx',
	'from' => [
		'address' => 'address@mail.com',
		'name' => 'Name'
		]
	];
// SMTP config
$config = [
	'driver' => 'smtp',
	'host' => 'smtp.xxx.io',
	'port' => 2525,
	'username' => 'xxx',
	'password' => 'xxx',
	'encription' => 'null'
	'from' => [
		'address' => 'address@mail.com',
		'name' => 'Name'
		]
	];

Mail::config($config)->to($request->user())->send(new OrderShipped($order));
```

NOTE ON QUEUES
--------------

[](#note-on-queues)

If you use **Mail::config** than don't use **-&gt;queue();** , use **-&gt;send();** . If you use queue on Mail then it will use config from /config/mail.php while sending. Might try to fix that one day.

If you need to queue Mail with custom config then use Jobs.

```
	SendEmail::dispatch($config, $order);
```

---

```
	/**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct($config, $order)
    {
        $this->config = $config;
        $this->order = $order;
    }

	 /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        Mail::config($this->config)
        ->to($this->order->email)
        ->send(new OrderShipped($this->order));
    }
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~18 days

Total

2

Last Release

2311d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/36b25f9c62eabff2cd8daf2542077f7c75780d7055c9bea8c042a20c5b5ea224?d=identicon)[emchooo](/maintainers/emchooo)

---

Top Contributors

[![emchooo](https://avatars.githubusercontent.com/u/6212652?v=4)](https://github.com/emchooo "emchooo (4 commits)")

---

Tags

laravelmailmailermailness

### Embed Badge

![Health badge](/badges/emchooo-laravel-flymail/health.svg)

```
[![Health](https://phpackages.com/badges/emchooo-laravel-flymail/health.svg)](https://phpackages.com/packages/emchooo-laravel-flymail)
```

###  Alternatives

[vemcogroup/laravel-sparkpost-driver

SparkPost driver to use with Laravel 6.x|7.x|8.x|9.x|10.x

431.8M1](/packages/vemcogroup-laravel-sparkpost-driver)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[juanparati/brevosuite

Complete Brevo integration with Laravel

1014.8k](/packages/juanparati-brevosuite)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
