eLod/li3_mailer

Embed Images Outside of Template?

Opened this issue · 1 comments

@eLod - Is there any way to embed images without using the Html helper? So far I see that embedded images can be added directly when invoking li3_mailer\net\mail\Message. But how can I embed an image using Mailer::deliver(). This is assuming of course that cid is already in place via the html.

eLod commented

@fitzagard you should be able to add attachments via templates and also the Mailer::deliver() (and a couple other places). you can check the wiki but basically Mailer::deliver('name', array('attach' => array('path/to/img' => array('id' => 'your-cid')))) should do it, check Message->attach() and Message->embed().