2017 © Pedro Peláez
 

library laravel-alternative-mailer

Allow Laravel to send emails through two different mail configurations.

image

cyber-duck/laravel-alternative-mailer

Allow Laravel to send emails through two different mail configurations.

  • Monday, June 13, 2016
  • by cyber-duck
  • Repository
  • 4 Watchers
  • 3 Stars
  • 2,308 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

🚨 Discontinued 🚨

This package is available in Laravel be default in later releases., (*1)

Laravel Alternative Mailer

Build Status Latest Stable Version Total Downloads License, (*2)

This package allows a Laravel 5 application to send emails through two different mail configurations. This package has been adapted from illuminate/mail by Taylor Otwell., (*3)

Author: Simone Todaro, (*4)

Install

Require this package with composer:, (*5)

composer require cyber-duck/laravel-alternative-mailer:~1.0.2

After updating composer, add the ServiceProvider to the providers array in config/app.php, (*6)

'providers' => array(
    ...
    'Cyberduck\Mail\MailServiceProvider'
)

And add an alias in config/app.php:, (*7)

'aliases' => array(
    'Mail2' => 'Cyberduck\Mail\Facades\Mail',
)

Copy the package config to your local config with the publish command:, (*8)

php artisan vendor:publish --provider="Cyberduck\Mail\MailServiceProvider"

Finally, set up your configuration in config/mail2.php, (*9)

Usage

To send an email with the alternative configuration, use the Mail2 facade with the same syntax of the Mail facade., (*10)

\Mail2::send('emails.reminder', ['user' => $user], function ($m) use ($user) {
    $m->from('hello@app.com', 'Your Application');
    $m->to($user->email, $user->name);
    $m->subject('Your Reminder!');
});

The Versions

13/06 2016

dev-master

9999999-dev http://github.com/Cyber-Duck/Laravel-Alternative-Mailer

Allow Laravel to send emails through two different mail configurations.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel mail multiple mail configurations

12/06 2016

dev-develop

dev-develop http://github.com/Cyber-Duck/Laravel-Alternative-Mailer

Allow Laravel to send emails through two different mail configurations.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel mail multiple mail configurations

12/06 2016

1.0.2

1.0.2.0 http://github.com/Cyber-Duck/Laravel-Alternative-Mailer

Allow Laravel to send emails through two different mail configurations.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel mail multiple mail configurations

09/06 2016

1.0.1

1.0.1.0 http://laravel.com

Allow Laravel to use a secondary mail package.

  Sources   Download

MIT

The Requires