2017 © Pedro Peláez
 

library laravel-switchable-mail

For Laravel to support multiple and switchable on runtime mail drivers.

image

kevinzheng/laravel-switchable-mail

For Laravel to support multiple and switchable on runtime mail drivers.

  • Saturday, November 26, 2016
  • by kevinzheng
  • Repository
  • 2 Watchers
  • 22 Stars
  • 653 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 15 Forks
  • 1 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

laravel-switchable-mail

It makes Laravel be able to maintain multiple mail drivers at the same time, and be able to send to different mail addresses with specified mail drivers as configured at runtime automatically., (*1)

Instructions

English, (*2)

中文简体, (*3)

Installation

  1. Install this package using the Composer manager:, (*4)

    composer require kevinzheng/laravel-switchable-mail
    
  2. Replace Illuminate\Mail\MailServiceProvider::class with KVZ\Laravel\SwitchableMail\MailServiceProvider::class in the config/app.php file., (*5)

  3. Publish configuration file:, (*6)

    php artisan vendor:publish --tag=switchable-mail
    

Configuration

It uses the MAIL_DRIVER configured in .env as the default mail driver, for those addresses you want to send to with specified mail drivers, configure it at switchable-mail.php. You should install the mail drivers not provided by Laravel at the meantime, such as Aliyun Direct Mail and SendCloud:, (*7)

```php
// 'directmail' => [
//     'qq.com', '163.com', '126.com', 'sina.com', 'sina.com.cn', 'sohu.com',
// ],

// 'mailgun' => [
//     'example.com',
// ],
```

Two mail drivers are available:, (*8)

laravel-directmail, (*9)

laravel-sendcloud, (*10)

Usage

Nothing needs to be done, just use Laravel Mail as usual., (*11)

Thanks to

ElfSundae, (*12)

The Versions

26/11 2016

dev-master

9999999-dev https://github.com/kevinzheng/laravel-switchable-mail

For Laravel to support multiple and switchable on runtime mail drivers.

  Sources   Download

MIT

The Requires

 

by Kevin Zheng

26/11 2016

1.3

1.3.0.0 https://github.com/kevinzheng/laravel-switchable-mail

For Laravel to support multiple and switchable on runtime mail drivers.

  Sources   Download

MIT

The Requires

 

by Kevin Zheng

26/11 2016

dev-develop

dev-develop https://github.com/kevinzheng/laravel-switchable-mail

For Laravel to support multiple and switchable on runtime mail drivers.

  Sources   Download

MIT

The Requires

 

by Kevin Zheng

25/11 2016

1.2

1.2.0.0 https://github.com/kevinzheng/laravel-switchable-mail

For Laravel to support multiple and switchable on runtime mail drivers.

  Sources   Download

MIT

The Requires

 

by Kevin Zheng

23/11 2016

1.0

1.0.0.0 https://github.com/kevinzheng/laravel-switchable-mail

For Laravel to support multiple and switchable on runtime mail drivers.

  Sources   Download

MIT

The Requires

 

by Kevin Zheng