lundi 30 mai 2016

Laravel 5.1: How to pass HTML Body and Text Body without using view?

I'm trying to send emails in laravel5.1 and found that Mail:Send used view templates like below:

Mail::send(['html.view', 'text.view'], $data, $callback);

Problem is I have my ready to send HTML body and TEXT body are coming from database. How to set html view and text view if content coming from database like below:

$html_body = $row['Html_Body']; // holds html content
$text_body = $row['Text_Body']; // holds text content

Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire