Interface IExchangeMessage

All Superinterfaces:

@Scriptable public interface IExchangeMessage extends IExchangeItem
Defines properties of a MS Exchange message and methods to work with a message.

Usage example:

IExchangeMessage l_msg = ExchangeMessageUtil.createNewDraft("", "", "The Subject", "The Message"); //create a new message

l_msg.setCC(""); //update some properties; //save the updated properties

l_msg.addAttachment(new File("attachment.txt")); // add an attachment

l_msg.send(); //send the message
  • Method Details

    • getTo

      String getTo()
    • setTo

      void setTo(String p_strRecipient)
    • setTo

      void setTo(List<String> p_recipients)
    • getFrom

      String getFrom()
    • setFrom

      void setFrom(String p_strFrom)
    • getBcc

      String getBcc()
    • setBcc

      void setBcc(String p_strBcc)
    • getCc

      String getCc()
    • setCc

      void setCc(String p_strCc)
    • getUnicodeSubject

      String getUnicodeSubject()
    • setUnicodeSubject

      void setUnicodeSubject(String p_strUnicodeSubject)
    • getDate

      Date getDate()
    • setDate

      void setDate(Date p_date)
    • getDateReceived

      Date getDateReceived()
    • hasAttachment

      boolean hasAttachment()
    • getInReplyTo

      String getInReplyTo()
    • getReplyTo

      String getReplyTo()
    • setReplyTo

      void setReplyTo(String p_strReplyTo)
    • getSender

      String getSender()
    • getBody

      String getBody()
    • setBody

      void setBody(String p_strBody)
    • getHtmlDescription

      String getHtmlDescription()
    • setHtmlDescription

      void setHtmlDescription(String p_strHtmlDescr)
    • getSize

      int getSize()
    • getCreationDate

      Date getCreationDate()
    • isRead

      boolean isRead()
    • setRead

      void setRead(boolean p_bRead)
    • send

      void send() throws
      Sends the message.
      Throws: - If message could not be sent.