Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0, 1.1, 1.2
-
None
Description
When calling the .embed(File file, String cid) method on HtmlEmail, the cid argument is never used within the method.
Consequently, even when the user specifies a Content-ID for the embedded File, a new randomly generated Content-ID is generated every time.
I believe this is as simple as changing the last line of .embed(File file, String cid) from:
return embed(new FileDataSource(file), file.getName());
To:
return embed(new FileDataSource(file), file.getName(), cid);