com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Interface IMessage

  • All Known Implementing Classes:
    MailMessage


    public interface IMessage

    Represents a common message interface

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      com.aspose.ms.System.Collections.Generic.IGenericCollection getAttachments()
      Gets message attachments
      com.aspose.ms.System.Collections.Generic.IGenericCollection getBcc()
      Gets BCC recipients
      String getBody()
      Gets or sets a message body
      int getBodyType()
      Gets the type of the body.
      com.aspose.ms.System.Collections.Generic.IGenericCollection getCc()
      Gets CC recipients
      Date getDate()
      Gets the date and time when message was delivered
      IMailAddress getFrom()
      Gets or sets a from address
      String getHtmlBody()
      Gets or sets a html formatted message body
      String getSubject()
      Gets or sets a message subject
      com.aspose.ms.System.Collections.Generic.IGenericCollection getTo()
      Gets recipients
      void save(OutputStream stream)
      Saves message to the specified stream
      void save(String fileName)
      Saves message to the specified file
      void setBody(String value)
      Gets or sets a message body
      void setFrom(IMailAddress value)
      Gets or sets a from address
      void setHtmlBody(String value)
      Gets or sets a html formatted message body
      void setSubject(String value)
      Gets or sets a message subject
    • Method Detail

      • getSubject

        String getSubject()

        Gets or sets a message subject

        Returns:
        A message subject
      • setSubject

        void setSubject(String value)

        Gets or sets a message subject

      • getBody

        String getBody()

        Gets or sets a message body

        Returns:
        A message body
      • setBody

        void setBody(String value)

        Gets or sets a message body

      • getHtmlBody

        String getHtmlBody()

        Gets or sets a html formatted message body

        Returns:
        A html formatted message body
      • setHtmlBody

        void setHtmlBody(String value)

        Gets or sets a html formatted message body

      • getDate

        Date getDate()

        Gets the date and time when message was delivered

        Returns:
        A date and time when message was delivered
      • getAttachments

        com.aspose.ms.System.Collections.Generic.IGenericCollection getAttachments()

        Gets message attachments

        Returns:
        A message attachments
      • getTo

        com.aspose.ms.System.Collections.Generic.IGenericCollection getTo()

        Gets recipients

        Returns:
        A recipients
      • getCc

        com.aspose.ms.System.Collections.Generic.IGenericCollection getCc()

        Gets CC recipients

        Returns:
        A CC recipients
      • getBcc

        com.aspose.ms.System.Collections.Generic.IGenericCollection getBcc()

        Gets BCC recipients

        Returns:
        A BCC recipients
      • getFrom

        IMailAddress getFrom()

        Gets or sets a from address

        Returns:
        A from address
      • setFrom

        void setFrom(IMailAddress value)

        Gets or sets a from address

        Parameters:
        value - A from address
      • getBodyType

        int getBodyType()

        Gets the type of the body.

        Returns:
        A type of the body
      • save

        void save(String fileName)

        Saves message to the specified file

        Parameters:
        fileName - A file name
      • save

        void save(OutputStream stream)

        Saves message to the specified stream

        Parameters:
        stream - A stream to save to