Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed Images Outside of Template? #8

Open
fitzagard opened this issue Oct 29, 2014 · 1 comment
Open

Embed Images Outside of Template? #8

fitzagard opened this issue Oct 29, 2014 · 1 comment

Comments

@fitzagard
Copy link

@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
Copy link
Owner

eLod commented Oct 31, 2014

@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().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants