Click or drag to resize
MimeKit

IMimeMessage Interface

An interface for a MIME message.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public interface IMimeMessage : IDisposable

The IMimeMessage type exposes the following members.

Properties
 NameDescription
Public propertyCode exampleAttachments Get the attachments.
Public propertyBcc Get the list of addresses in the Bcc header.
Public propertyBody Get or set the body of the message.
Public propertyCode exampleBodyParts Get the body parts of the message.
Public propertyCc Get the list of addresses in the Cc header.
Public propertyDate Get or set the date of the message.
Public propertyFrom Get the list of addresses in the From header.
Public propertyHeaders Get the list of headers.
Public propertyHtmlBody Get the html body of the message if it exists.
Public propertyImportance Get or set the value of the Importance header.
Public propertyInReplyTo Get or set the Message-Id that this message is replying to.
Public propertyMessageId Get or set the message identifier.
Public propertyMimeVersion Get or set the MIME-Version.
Public propertyPriority Get or set the value of the Priority header.
Public propertyReferences Get the list of references to other messages.
Public propertyReplyTo Get the list of addresses in the Reply-To header.
Public propertyResentBcc Get the list of addresses in the Resent-Bcc header.
Public propertyResentCc Get the list of addresses in the Resent-Cc header.
Public propertyResentDate Get or set the Resent-Date of the message.
Public propertyResentFrom Get the list of addresses in the Resent-From header.
Public propertyResentMessageId Get or set the Resent-Message-Id header.
Public propertyResentReplyTo Get the list of addresses in the Resent-Reply-To header.
Public propertyResentSender Get or set the address in the Resent-Sender header.
Public propertyResentTo Get the list of addresses in the Resent-To header.
Public propertySender Get or set the address in the Sender header.
Public propertySubject Get or set the subject of the message.
Public propertyTextBody Get the text body of the message if it exists.
Public propertyTo Get the list of addresses in the To header.
Public propertyXPriority Get or set the value of the X-Priority header.
Top
Methods
 NameDescription
Public methodAccept Dispatches to the specific visit method for this MIME message.
Public methodDispose
(Inherited from IDisposable)
Public methodGetTextBody Get the text body in the specified format.
Public methodPrepare Prepare the message for transport using the specified encoding constraints.
Public methodWriteTo(Stream, CancellationToken) Write the message to the specified output stream.
Public methodWriteTo(String, CancellationToken) Write the message to the specified file.
Public methodWriteTo(FormatOptions, Stream, CancellationToken) Write the message to the specified output stream.
Public methodWriteTo(FormatOptions, String, CancellationToken) Write the message to the specified file.
Public methodWriteTo(Stream, Boolean, CancellationToken) Write the message to the specified output stream.
Public methodWriteTo(FormatOptions, Stream, Boolean, CancellationToken) Write the message to the specified output stream.
Public methodWriteToAsync(Stream, CancellationToken) Asynchronously write the message to the specified output stream.
Public methodWriteToAsync(String, CancellationToken) Asynchronously write the message to the specified file.
Public methodWriteToAsync(FormatOptions, Stream, CancellationToken) Asynchronously write the message to the specified output stream.
Public methodWriteToAsync(FormatOptions, String, CancellationToken) Asynchronously write the message to the specified file.
Public methodWriteToAsync(Stream, Boolean, CancellationToken) Asynchronously write the message to the specified output stream.
Public methodWriteToAsync(FormatOptions, Stream, Boolean, CancellationToken) Asynchronously write the message to the specified output stream.
Top
Remarks

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.

See Also