Interface IExchangeMessage

All Superinterfaces:
IExchangeItem

@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("sender@example.org", "recipient@example.org", "The Subject", "The Message"); //create a new message

l_msg.setCC("recipient2@example.org"); //update some properties

l_msg.save(); //save the updated properties

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

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

    • getTo Link icon

      String getTo()
    • setTo Link icon

      void setTo(String p_strRecipient)
    • setTo Link icon

      void setTo(List<String> p_recipients)
    • getFrom Link icon

      String getFrom()
    • setFrom Link icon

      void setFrom(String p_strFrom)
    • getBcc Link icon

      String getBcc()
    • setBcc Link icon

      void setBcc(String p_strBcc)
    • getCc Link icon

      String getCc()
    • setCc Link icon

      void setCc(String p_strCc)
    • getUnicodeSubject Link icon

      String getUnicodeSubject()
    • setUnicodeSubject Link icon

      void setUnicodeSubject(String p_strUnicodeSubject)
    • getDate Link icon

      Date getDate()
    • setDate Link icon

      void setDate(Date p_date)
    • getDateReceived Link icon

      Date getDateReceived()
    • hasAttachment Link icon

      boolean hasAttachment()
    • getInReplyTo Link icon

      String getInReplyTo()
    • getReplyTo Link icon

      String getReplyTo()
    • setReplyTo Link icon

      void setReplyTo(String p_strReplyTo)
    • getSender Link icon

      String getSender()
    • getBody Link icon

      String getBody()
    • setBody Link icon

      void setBody(String p_strBody)
    • getHtmlDescription Link icon

      String getHtmlDescription()
    • setHtmlDescription Link icon

      void setHtmlDescription(String p_strHtmlDescr)
    • getSize Link icon

      int getSize()
    • getCreationDate Link icon

      Date getCreationDate()
    • isRead Link icon

      boolean isRead()
    • setRead Link icon

      void setRead(boolean p_bRead)
    • send Link icon

      void send() throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
      Sends the message.
      Throws:
      de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException - If message could not be sent.