Package org.iplass.mtp.mail
Class HtmlMessage
java.lang.Object
org.iplass.mtp.mail.HtmlMessage
public class HtmlMessage
extends java.lang.Object
Represents the body text when sending html mail.
-
Constructor Summary
Constructors Constructor Description HtmlMessage()HtmlMessage(java.lang.String content, java.lang.String charset) -
Method Summary
Modifier and Type Method Description voidaddInlineContent(java.lang.String cid, javax.activation.DataHandler dataHandler)Add an embedded image to html.voidaddInlineContent(java.lang.String cid, BinaryReference bin)Add an embedded image to html.java.lang.StringgetCharset()java.lang.StringgetContent()java.util.List<InlineContent>getInlineContents()voidsetCharset(java.lang.String charset)Set the charset of html.voidsetContent(java.lang.String content)Set the html text.voidsetInlineContents(java.util.List<InlineContent> inlineContents)
-
Constructor Details
-
HtmlMessage
public HtmlMessage() -
HtmlMessage
public HtmlMessage(java.lang.String content, java.lang.String charset)
-
-
Method Details
-
getContent
public java.lang.String getContent() -
setContent
public void setContent(java.lang.String content)Set the html text.- Parameters:
content-
-
getCharset
public java.lang.String getCharset() -
setCharset
public void setCharset(java.lang.String charset)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
public void addInlineContent(java.lang.String cid, javax.activation.DataHandler dataHandler)Add an embedded image to html.- Parameters:
cid- Content-ID of embedding image in htmldataHandler- DataHandler to embed
-
getInlineContents
-
setInlineContents
-