PHPackages                             metarush/email-fallback - 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. metarush/email-fallback

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

metarush/email-fallback
=======================

Send email via SMTP host, if it fails, fallback/failover to another SMTP host. Round-robin mode also available to distribute the load to all SMTP hosts.

v6.0.0(5mo ago)12044MITPHPPHP &gt;=8.0

Since Feb 12Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/metarush/email-fallback)[ Packagist](https://packagist.org/packages/metarush/email-fallback)[ RSS](/packages/metarush-email-fallback/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (13)Used By (4)

metarush/email-fallback
=======================

[](#metarushemail-fallback)

Send email via SMTP host, if it fails, fallback/failover to another SMTP host. Round-robin mode also available to distribute the load to all SMTP hosts.

Note: This library uses `PHPMailer`.

Install
-------

[](#install)

Install via composer as `metarush/email-fallback`

Usage
-----

[](#usage)

Define your SMTP servers. You can add as many as you want.

```
