Package Data | |
---|---|
Maintainer Username: | bingooo |
Package Create Date: | 2016-03-02 |
Package Last Update: | 2016-03-02 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 15:03:51 |
Package Statistics | |
---|---|
Total Downloads: | 25 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 3 |
Total Open Issues: | 0 |
composer require bingooo/laravel-submail
config/app.php
'providers' => [
Bingooo\Mail\SubMailServiceProvider::class,
];
.env
MAIL_DRIVER=submail
SUBMAIL_APPID=
SUBMAIL_APPKEY=
Mail::send('emails.welcome', $data, function ($message) {
$message->from('foo@example.com', 'XXXXX');
$message->to('foo@example.com')->cc('bar@example.com');
});
$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');
});