octobercms mail

114

// These variables are available inside the message as Twig
$vars = ['name' => 'Joe', 'user' => 'Mary'];

Mail::send('acme.blog::mail.message', $vars, function($message) {

    $message->to('[email protected]', 'Admin Person');
    $message->subject('This is a reminder');

});

Comments

Submit
0 Comments