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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInlineContent(String cid, jakarta.activation.DataHandler dataHandler) Add an embedded image to html.voidaddInlineContent(String cid, BinaryReference bin) Add an embedded image to html.voidsetCharset(String charset) Set the charset of html.voidsetContent(String content) Set the html text.voidsetInlineContents(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
-