public interface IMessage
Represents a common message interface
Modifier and Type | Method and Description |
---|---|
com.aspose.ms.System.Collections.Generic.IGenericCollection<Attachment> |
getAttachments()
Gets message attachments
|
com.aspose.ms.System.Collections.Generic.IGenericCollection<MailAddress> |
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<MailAddress> |
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<MailAddress> |
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
|
String getSubject()
Gets or sets a message subject
void setSubject(String value)
Gets or sets a message subject
String getBody()
Gets or sets a message body
void setBody(String value)
Gets or sets a message body
String getHtmlBody()
Gets or sets a html formatted message body
void setHtmlBody(String value)
Gets or sets a html formatted message body
Date getDate()
Gets the date and time when message was delivered
com.aspose.ms.System.Collections.Generic.IGenericCollection<Attachment> getAttachments()
Gets message attachments
com.aspose.ms.System.Collections.Generic.IGenericCollection<MailAddress> getTo()
Gets recipients
com.aspose.ms.System.Collections.Generic.IGenericCollection<MailAddress> getCC()
Gets CC recipients
com.aspose.ms.System.Collections.Generic.IGenericCollection<MailAddress> getBcc()
Gets BCC recipients
IMailAddress getFrom()
Gets or sets a from address
void setFrom(IMailAddress value)
Gets or sets a from address
int getBodyType()
Gets the type of the body.
void save(String fileName)
Saves message to the specified file
fileName
- A file namevoid save(OutputStream stream)
Saves message to the specified stream
stream
- A stream to save to