I want to send an email with HTML tags inside it with Laravel for which I am using Mail::raw() method. I don't want to send a view, just want to send data as text with few HTML tags in it.
I used to below code
\Mail::raw("<h1>Hello</h1>", function ($message) use ($receiversEmail, $subject, $body) {
$message->from("hello@user.com", 'A user');
$message->to($receiversEmail);
$message->subject($subject);
});
But the HTML tags are not getting converted and hence I got a mail that reads like
<h1>Hello</h1>
How can i achieve this?