Class HtmlMessage

java.lang.Object
org.iplass.mtp.mail.HtmlMessage

public class HtmlMessage extends Object
Represents the body text when sending html mail.
  • Constructor Details

    • HtmlMessage

      public HtmlMessage()
    • HtmlMessage

      public HtmlMessage(String content, String charset)
  • Method Details

    • getContent

      public String getContent()
    • setContent

      public void setContent(String content)
      Set the html text.
      Parameters:
      content -
    • getCharset

      public String getCharset()
    • setCharset

      public void setCharset(String charset)
      Set the charset of html.
      Parameters:
      charset -
    • addInlineContent

      public void addInlineContent(String cid, BinaryReference bin)
      Add an embedded image to html.
      Parameters:
      cid - Content-ID of embedding image in html
      bin - BinaryReference to embed
    • addInlineContent

      public void addInlineContent(String cid, jakarta.activation.DataHandler dataHandler)
      Add an embedded image to html.
      Parameters:
      cid - Content-ID of embedding image in html
      dataHandler - DataHandler to embed
    • getInlineContents

      public List<InlineContent> getInlineContents()
    • setInlineContents

      public void setInlineContents(List<InlineContent> inlineContents)