IMime |
public interface IMimeMessage : IDisposable
The IMimeMessage type exposes the following members.
Name | Description | |
---|---|---|
Attachments | Get the attachments. | |
Bcc | Get the list of addresses in the Bcc header. | |
Body | Get or set the body of the message. | |
BodyParts | Get the body parts of the message. | |
Cc | Get the list of addresses in the Cc header. | |
Date | Get or set the date of the message. | |
From | Get the list of addresses in the From header. | |
Headers | Get the list of headers. | |
HtmlBody | Get the html body of the message if it exists. | |
Importance | Get or set the value of the Importance header. | |
InReplyTo | Get or set the Message-Id that this message is replying to. | |
MessageId | Get or set the message identifier. | |
MimeVersion | Get or set the MIME-Version. | |
Priority | Get or set the value of the Priority header. | |
References | Get the list of references to other messages. | |
ReplyTo | Get the list of addresses in the Reply-To header. | |
ResentBcc | Get the list of addresses in the Resent-Bcc header. | |
ResentCc | Get the list of addresses in the Resent-Cc header. | |
ResentDate | Get or set the Resent-Date of the message. | |
ResentFrom | Get the list of addresses in the Resent-From header. | |
ResentMessageId | Get or set the Resent-Message-Id header. | |
ResentReplyTo | Get the list of addresses in the Resent-Reply-To header. | |
ResentSender | Get or set the address in the Resent-Sender header. | |
ResentTo | Get the list of addresses in the Resent-To header. | |
Sender | Get or set the address in the Sender header. | |
Subject | Get or set the subject of the message. | |
TextBody | Get the text body of the message if it exists. | |
To | Get the list of addresses in the To header. | |
XPriority | Get or set the value of the X-Priority header. |
Name | Description | |
---|---|---|
Accept | Dispatches to the specific visit method for this MIME message. | |
Dispose | (Inherited from IDisposable) | |
GetTextBody | Get the text body in the specified format. | |
Prepare | Prepare the message for transport using the specified encoding constraints. | |
WriteTo(Stream, CancellationToken) | Write the message to the specified output stream. | |
WriteTo(String, CancellationToken) | Write the message to the specified file. | |
WriteTo(FormatOptions, Stream, CancellationToken) | Write the message to the specified output stream. | |
WriteTo(FormatOptions, String, CancellationToken) | Write the message to the specified file. | |
WriteTo(Stream, Boolean, CancellationToken) | Write the message to the specified output stream. | |
WriteTo(FormatOptions, Stream, Boolean, CancellationToken) | Write the message to the specified output stream. | |
WriteToAsync(Stream, CancellationToken) | Asynchronously write the message to the specified output stream. | |
WriteToAsync(String, CancellationToken) | Asynchronously write the message to the specified file. | |
WriteToAsync(FormatOptions, Stream, CancellationToken) | Asynchronously write the message to the specified output stream. | |
WriteToAsync(FormatOptions, String, CancellationToken) | Asynchronously write the message to the specified file. | |
WriteToAsync(Stream, Boolean, CancellationToken) | Asynchronously write the message to the specified output stream. | |
WriteToAsync(FormatOptions, Stream, Boolean, CancellationToken) | Asynchronously write the message to the specified output stream. |
A message consists of header fields and, optionally, a body.
The body of the message can either be plain text or it can be a tree of MIME entities such as a text/plain MIME part and a collection of file attachments.