Send inline images

Fixes #49
This commit is contained in:
M66B 2018-09-13 18:31:05 +00:00
parent 402198df9d
commit f0a8803689
1 changed files with 2 additions and 0 deletions

View File

@ -193,6 +193,8 @@ public class MessageHelper {
}
});
bpAttachment.setDataHandler(new DataHandler(dataSource));
if (attachment.cid != null)
bpAttachment.setHeader("Content-ID", attachment.cid);
multipart.addBodyPart(bpAttachment);
}