2017 © Pedro Peláez
 

library laravel-submail

image

bingooo/laravel-submail

  • Wednesday, March 2, 2016
  • by bingooo
  • Repository
  • 1 Watchers
  • 1 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel-SubMail

composer require bingooo/laravel-submail

config/app.php, (*1)

'providers' => [
    Bingooo\Mail\SubMailServiceProvider::class,
];

.env, (*2)

MAIL_DRIVER=submail

SUBMAIL_APPID=
SUBMAIL_APPKEY=

Normal

Mail::send('emails.welcome', $data, function ($message) {
    $message->from('foo@example.com', 'XXXXX');
    $message->to('foo@example.com')->cc('bar@example.com');
});

Use template:

$vars = ['name' => 'hi','link_text' => 'http://example.com'];
$links = ['link' => 'http://example.com'];
$template = new Bingooo\Mail\SubMailTemplate('XXXXX', $vars, $links);
\Mail::raw($template,function($message){
  $message->from('foo@example.com', 'XXXXX');
  $message->to('foo@example.com');
});

The Versions

02/03 2016

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Avatar bingooo

laravel submail