PHPackages                             filippo-toso/mailable - 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. filippo-toso/mailable

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

filippo-toso/mailable
=====================

A Laravel configurable Mailable class that also works with queues.

v1.0.6(3y ago)120MITPHPPHP ^7.2.5|^8.0

Since Dec 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/filippotoso/mailable)[ Packagist](https://packagist.org/packages/filippo-toso/mailable)[ RSS](/packages/filippo-toso-mailable/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (8)Used By (0)

Configurable Mailable
=====================

[](#configurable-mailable)

A Laravel configurable Mailable class that also works with queues.

Requirements
------------

[](#requirements)

- PHP 7.2.5+
- Laravel 7+

Installing
----------

[](#installing)

Use Composer to install it:

```
composer require filippo-toso/mailable

```

What it does?
-------------

[](#what-it-does)

It allows you to send emails using different mailer settings (ie. SMTPs) depending on external factors. This class is very useful when you have a multitenant Laravel application and want to use a different SMTP accounts for each of your tenant.

How does it work?
-----------------

[](#how-does-it-work)

It's easy, just 2 simple steps!

First, extends your mail classes from `FilippoToso\Mailable\Mailable` instead of `Illuminate\Mail\Mailable`:

```
