April 2015
Beginner
144 pages
3h 13m
English
Laravel's Mail class extends the popular Swift Mailer package, which makes sending e-mails a breeze. The e-mail templates are loaded in the same way as views, which means you can use the Blade syntax and inject data into your templates:
resources/views/email/view.blade.php, we use the following function:Mail::send('email.view', $data, function($message) {});Mail::send(array('html.view', 'text.view'), $data, $callback);Mail::later(5, 'email.view', $data, function($message) {});Inside the $callback closure that receives ...
Read now
Unlock full access