Slide 34
Slide 34 text
Mime
Add DraftMail type:
$content = (new DraftEmail()
:>html($twig:>render(::.))
:>attach(::.)
:>toString()
;
$response = new Response($message:>toString());
$contentDisposition = $response:>headers:>makeDisposition(
ResponseHeaderBag::DISPOSITION_ATTACHMENT,
'download.eml'
);
#44311
@kbond