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

    • 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 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.