Interface IMailMessage
Represents a mail message loaded from a file or stream, providing access to its underlying MapiMessage representation and the ability to save it back to disk.
Namespace: DRIT.Mail
Assembly: DRIT.Mail.dll
Syntax
public interface IMailMessage
Properties
View SourceMapiMessage
Gets the underlying MapiMessage representation of this message.
Declaration
MapiMessage MapiMessage { get; }
Property Value
| Type | Description |
|---|---|
| MapiMessage |
SourceFormat
Gets the format from which this message was originally loaded.
Declaration
MailMessageFormat SourceFormat { get; }
Property Value
| Type | Description |
|---|---|
| MailMessageFormat |
Methods
View SourceSave(Stream, MailMessageFormat)
Saves the message to the specified stream in the given format.
Declaration
void Save(Stream stream, MailMessageFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream to write to. |
| MailMessageFormat | format | The target format. |
Save(string, MailMessageFormat)
Saves the message to the specified file in the given format.
Declaration
void Save(string fileName, MailMessageFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fileName | The path of the file to save to. |
| MailMessageFormat | format | The target format. |