Published 4 months ago by dreamxyz
I am using this method to send email
I want to convert a html page to pdf format and send via email as attachment. Is there any method i can use for perform this?
@tisuchi i tried something like
$pdf = PDF::loadHtml(URL::to(......)); $m->attachData($pdf->output(), 'abc.pdf', ['mime' => 'application/pdf']);
When email sent out, the attachment is blank and only with the url link, is my way correct to make the html as pdf and send as email attachment?