Package org.iplass.mtp.mail
Class HtmlMessage
java.lang.Object
org.iplass.mtp.mail.HtmlMessage
Represents the body text when sending html mail.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addInlineContent
(String cid, jakarta.activation.DataHandler dataHandler) Add an embedded image to html.void
addInlineContent
(String cid, BinaryReference bin) Add an embedded image to html.void
setCharset
(String charset) Set the charset of html.void
setContent
(String content) Set the html text.void
setInlineContents
(List<InlineContent> inlineContents)
-
Constructor Details
-
HtmlMessage
public HtmlMessage() -
HtmlMessage
-
-
Method Details
-
getContent
-
setContent
Set the html text.- Parameters:
content
-
-
getCharset
-
setCharset
Set the charset of html.- Parameters:
charset
-
-
addInlineContent
Add an embedded image to html.- Parameters:
cid
- Content-ID of embedding image in htmlbin
- BinaryReference to embed
-
addInlineContent
Add an embedded image to html.- Parameters:
cid
- Content-ID of embedding image in htmldataHandler
- DataHandler to embed
-
getInlineContents
-
setInlineContents
-