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

Image embedded using Content-ID header #15

Open
Joeviocoe opened this issue Dec 19, 2018 · 1 comment
Open

Image embedded using Content-ID header #15

Joeviocoe opened this issue Dec 19, 2018 · 1 comment

Comments

@Joeviocoe
Copy link

Is there anyway to embed images using "cid:image.png"? I can easily reference the cid in the body html... But how do I set the reference between the attached image file (using -a), and the Content-ID.

I've seen ways to do this with java setting multipart classes. But don't see how to translate that to sendEmail options.

Thanks

@bAndie91
Copy link

if i´m not mistaken, image.png in the cid: url is looked up in the attachments simply by the filename by mail user agents. and sendEmail basically takes the basename of the attached file into Content-Disposition filename field. so just attach it like -a ./path/to/image.png.

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