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 Detail

      • getSubject

        String getSubject()

        Gets or sets a message subject

      • setSubject

        void setSubject(String value)

        Gets or sets a message subject

      • getBody

        String getBody()

        Gets or sets 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

      • 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

      • getAttachments

        com.aspose.ms.System.Collections.Generic.IGenericCollection<Attachment> getAttachments()

        Gets message attachments

      • getTo

        com.aspose.ms.System.Collections.Generic.IGenericCollection<MailAddress> getTo()

        Gets recipients

      • getCC

        com.aspose.ms.System.Collections.Generic.IGenericCollection<MailAddress> getCC()

        Gets CC recipients

      • getBcc

        com.aspose.ms.System.Collections.Generic.IGenericCollection<MailAddress> getBcc()

        Gets BCC recipients

      • getFrom

        IMailAddress getFrom()

        Gets or sets a from address

      • setFrom

        void setFrom(IMailAddress value)

        Gets or sets a from address

      • getBodyType

        int getBodyType()

        Gets the 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