I am using dompdf to send mail in my laravel project. I want to send dynamic blade file as attachment within it.So i create one blade file and in my controller :
$rendereddata = view('dynamic_data')->render();
and then, ->attachdata($rendereddata, 'dynamic_data.pdf');
on print_r
$rendereddata
it display my html view file.
But after sending mail file when i click on my attachment in mail its shows corrupted and blank. and on double click it goes to some other link of microsoft.Am i doing it right way or is their any other way to attach blade file as attachment in laravel. please let me know.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2P58FP9
via IFTTT
Aucun commentaire:
Enregistrer un commentaire