Initializes a new MIME message.
C#: internal MimeMessage (ParserOptions options, IEnumerable
ReadonlyheadersThe message headers.
ReadonlycomplianceC#: internal RfcComplianceMode compliance.
C#: internal byte[] MboxMarker.
The message body entity.
Gets or sets the message importance.
Gets or sets the message priority.
Gets or sets the X-Priority value.
Gets or sets the Sender mailbox.
Gets or sets the Resent-Sender mailbox.
Gets the From address list.
Gets the Resent-From address list.
Gets the Reply-To address list.
Gets the Resent-Reply-To address list.
Gets the To address list.
Gets the Resent-To address list.
Gets the Cc address list.
Gets the Resent-Cc address list.
Gets the Bcc address list.
Gets the Resent-Bcc address list.
Gets or sets the message subject.
Sets the message subject.
Gets or sets the Date header value.
Gets or sets the Resent-Date header value.
Gets the References message id list.
Gets or sets the In-Reply-To message id.
Sets the In-Reply-To message id.
Gets or sets the Message-Id value.
Sets the Message-Id value.
Gets or sets the Resent-Message-Id value.
Sets the Resent-Message-Id value.
Gets or sets the MIME-Version header value.
Gets the plain text body, if present.
Gets the HTML body, if present.
Enumerates all body parts recursively.
Enumerates attachment body parts recursively.
Gets the body text for a preferred format.
The preferred text format.
The body text, or null if not available.
Gets all message recipients.
Whether to return only unique mailbox addresses.
The recipient mailboxes.
Gets the mailbox that should be used as the signer when signing the message.
C#: MimeMessage.GetMessageSigner. If either of the Resent-Sender or Resent-From headers are set, the Resent-Sender (or first Resent-From mailbox) is used; otherwise the Sender or first From mailbox is used.
The signer mailbox, or null if no sender has been set.
Gets the set of mailboxes a message should be encrypted to.
C#: MimeMessage.GetEncryptionRecipients — the signer(s) plus every recipient (To/Cc/Bcc, or the Resent-* equivalents), de-duplicated.
The unique recipient mailboxes.
Dispatches to the visitor method for MIME messages.
The visitor.
Prepares the message body for transport.
The encoding constraint.
The maximum encoded line length.
Writes the message to a stream.
The destination stream.
Whether to write only headers.
Writes the message to a stream.
Formatting options.
The destination stream.
Writes the message to a stream.
Formatting options.
The destination stream.
Whether to write only headers.
Serializes the message to a string.
The serialized message.
StaticloadLoads a MIME message from bytes or a stream.
The input stream.
Optionalpersistent: boolean
Whether parsed content should reference the source stream.
Optionaloptions: ParserOptions
Parser options.
A Result; { ok: false } with a MimeError on malformed input.
Loads a MIME message from bytes or a stream.
The input bytes.
Optionaloptions: ParserOptions
Parser options.
A Result; { ok: false } with a MimeError on malformed input.
Releases resources owned by the message body and header lists.
StaticmergeMerges message headers with body entity headers for serialization.
The message headers.
The message body.
The merged headers.
Sign the message body in place using the specified S/MIME or OpenPGP context.
The signer is resolved from the message's Resent-Sender/Resent-From or
Sender/From address; the body is replaced with a multipart/signed.
The cryptography context.
OptionaldigestAlgo: DigestAlgorithm
The digest algorithm (defaults to SHA-1, matching C#).
Encrypt the message body in place to the sender and all recipients. The body
is replaced with an application/pkcs7-mime (S/MIME) or multipart/encrypted
(PGP/MIME) part, depending on the context.
The cryptography context.
Sign and then encrypt the message body in place using the specified context.
The cryptography context.
OptionaldigestAlgo: DigestAlgorithm
The digest algorithm (defaults to SHA-1, matching C#).
Represents a MIME message.
A message contains message headers and an optional body entity. Address, date, message-id, priority, and body helper properties are synchronized with their corresponding headers.