Support the ongoing development of Laravel.io →
Views Forms Mail
Last updated 1 year ago.
0

It is kind of mentioned in the docs. See: http://laravel.com/docs/5.0/mail


// You assign html or text as the key to do HTML or Text email
Mail::send(['html' => 'view'], $data, $callback);
0

Thanks for reply but when I used it and I got the same result as before.

$mail = Mail::send(['html' => 'emails.welcome'], array('body' => $inputs['body'], 'title'=>$inputs['subject']), function($message)
0

on displaying the the data on your email template just use {!! $data !!} ...

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Zolax zolax Joined 21 Jul 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.