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
    void addInlineContent​(java.lang.String cid, javax.activation.DataHandler dataHandler)
    Add an embedded image to html.
    void addInlineContent​(java.lang.String cid, BinaryReference bin)
    Add an embedded image to html.
    java.lang.String getCharset()  
    java.lang.String getContent()  
    java.util.List<InlineContent> getInlineContents()  
    void setCharset​(java.lang.String charset)
    Set the charset of html.
    void setContent​(java.lang.String content)
    Set the html text.
    void setInlineContents​(java.util.List<InlineContent> inlineContents)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void addInlineContent​(java.lang.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​(java.lang.String cid, javax.activation.DataHandler dataHandler)
      Add an embedded image to html.
      Parameters:
      cid - Content-ID of embedding image in html
      dataHandler - DataHandler to embed
    • getInlineContents

      public java.util.List<InlineContent> getInlineContents()
    • setInlineContents

      public void setInlineContents​(java.util.List<InlineContent> inlineContents)