Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

octobercms mail

// 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('admin@domain.tld', 'Admin Person');
    $message->subject('This is a reminder');

});
Source by octobercms.com #
 
PREVIOUS NEXT
Tagged: #octobercms #mail
ADD COMMENT
Topic
Name
9+6 =