This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
maxDubovsky
Is it possible to use a HTML then sending a mail ? Check the example below: in this case p and /p will be htmlspecialchars encoded, but I would like to use raw HTML.
$html_body = '<p>This is simple HTML</p>';
$data = [
'name' => $user->name,
'link' => $link,
'html_body' => $html_body
];
Mail::send('max.pluginname::mail.some_actin', $data, function($message) use ($user)
{
$message->to($user->email, $user->name);
});
Inside the template I tried to use {{html_body|raw}} but result stays the same. Any suggestions how to make this possible ?
Last updated
maxDubovsky
I Tried:
{!! html_body !!}
and
{{{html_body}}}
But it seems {{html_body|raw}} is working... needs more testing
1-3 of 3