Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

MimeMessage Class

Namespace: Rebex.Mime
Assembly: Rebex.Mail.dll (version 7.0.9119)

A MIME e-mail message.

Syntax
public class MimeMessage : MimeEntity
Inheritance
Object
MimeEntity
MimeMessage
Inherited Members
MimeEntity.CertificateFinder
MimeEntity.Charset
MimeEntity.ContentDescription
MimeEntity.ContentDisposition
MimeEntity.ContentId
MimeEntity.ContentLocation
MimeEntity.ContentMessage
MimeEntity.ContentString
MimeEntity.ContentTransferEncoding
MimeEntity.ContentType
MimeEntity.Decrypt()
MimeEntity.DefaultCharset
MimeEntity.Encrypt()
MimeEntity.EnvelopedContentInfo
MimeEntity.Epilogue
MimeEntity.GetContentStream()
MimeEntity.GetContentStream(Boolean)
MimeEntity.GetRawContentStream()
MimeEntity.GetSignatureEntity()
MimeEntity.Headers
MimeEntity.IsMultipart
MimeEntity.Kind
MimeEntity.Load(Stream)
MimeEntity.Load(String)
MimeEntity.Name
MimeEntity.OnBrokenHeader(MimeUnparsableHeaderEventArgs)
MimeEntity.Options
MimeEntity.Parent
MimeEntity.ParsingHeader
MimeEntity.Parts
MimeEntity.Preamble
MimeEntity.ReadOnly
MimeEntity.Save(Stream)
MimeEntity.Save(String)
MimeEntity.SetContent(MimeEntity)
MimeEntity.SetContent(Stream)
MimeEntity.SetContent(Stream, String)
MimeEntity.SetContent(Stream, String, String)
MimeEntity.SetContent(Stream, String, String, TransferEncoding)
MimeEntity.SetContent(String)
MimeEntity.SetContent(String, String)
MimeEntity.SetContent(String, String, Encoding)
MimeEntity.SetContent(String, String, Encoding, TransferEncoding)
MimeEntity.SetContentFromFile(String)
MimeEntity.SetContentFromFile(String, String)
MimeEntity.SetContentFromFile(String, String, String)
MimeEntity.SetContentFromFile(String, String, String, TransferEncoding)
MimeEntity.SetEnvelopedContent(MimeEntity, Certificate[])
MimeEntity.SetEnvelopedContent(MimeEntity, SymmetricKeyAlgorithmId, EncryptionParameters, Certificate[])
MimeEntity.SetEnvelopedContent(MimeEntity, SymmetricKeyAlgorithmId, Nullable<Int32>, EncryptionParameters, Certificate[])
MimeEntity.SetEnvelopedContent(MimeEntity, String, Certificate[])
MimeEntity.SetEnvelopedContent(MimeEntity, String, EncryptionParameters, Certificate[])
MimeEntity.SetSignedContent(MimeEntity, MimeSignatureStyle, Certificate[])
MimeEntity.SetSignedContent(MimeEntity, MimeSignatureStyle, SignatureHashAlgorithm, Certificate[])
MimeEntity.SetSignedContent(MimeEntity, MimeSignatureStyle, SignatureParameters, Certificate[])
MimeEntity.SetSignedContent(MimeEntity, Certificate[])
MimeEntity.SetSignedContent(MimeEntity, SignatureParameters, Certificate[])
MimeEntity.Sign()
MimeEntity.SignatureStyle
MimeEntity.SignedContentInfo
MimeEntity.Silent
MimeEntity.ToMessage()
MimeEntity.ToStream()
MimeEntity.TransferEncoding
MimeEntity.UnparsableHeader
MimeEntity.ValidateSignature()
MimeEntity.ValidateSignature(Boolean, ValidationOptions)
MimeEntity.ValidateSignature(Boolean, ValidationOptions, CertificateChainEngine)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()

Remarks

Adds useful properties to MimeEntity class.

Constructors

Name Description
MimeMessage()

Initializes an instance of MimeMessage.

Properties

Name Description
Bcc

Gets or sets the list of addresses of recipients that are not to be revealed to other recipients of the message.

CC

Gets or sets the list of addresses of others who are to receive the message.

CertificateFinder

Gets or sets the ICertificateFinder to be used to find certificates used to encrypt or sign the entity. Inherited from MimeEntity.

Charset

Gets the charset (Encoding) of the content of this entity. Inherited from MimeEntity.

Comments

Gets or sets the comments on the message.

ContentDescription

Gets or sets the content description of this entity. Inherited from MimeEntity.

ContentDisposition

Gets or sets the content disposition of this entity. Inherited from MimeEntity.

ContentId

Gets or sets the content ID of this entity. Inherited from MimeEntity.

ContentLocation

Gets or sets the content location of this entity. Inherited from MimeEntity.

ContentMessage

Gets the inner message of a 'message/rfc822' entity. Inherited from MimeEntity.

ContentString

Gets the content string of this entity. Inherited from MimeEntity.

ContentTransferEncoding

Gets or sets the content transfer encoding of this entity. Inherited from MimeEntity.

ContentType

Gets or sets the content type of this entity. Inherited from MimeEntity.

Date

Gets or sets the origination date of this message.

DefaultCharset

Gets or sets the default charset for MIME body and headers. Inherited from MimeEntity.

DispositionNotificationTo

Gets or sets the list of mailboxes that should be notified of message disposition by the receiving user agent.

EnvelopedContentInfo

Gets the EnvelopedData object that contains information about enveloped (encrypted) content. This property is only set for entities with enveloped content. Inherited from MimeEntity.

EnvelopeId

Gets or sets the envelope identifier to be transmitted along with the message and included in any DSNs issued.

Epilogue

Gets or sets the epilogue of this multipart entity. Inherited from MimeEntity.

From

Gets or sets the list of authors of this message.

Headers

Gets the list of headers of this entity. Inherited from MimeEntity.

InReplyTo

Gets or sets the list of identifiers of messages to which the message is a reply.

IsMultipart

Determines whether the entity is a multipart entity. Inherited from MimeEntity.

Keywords

Gets or sets the list of keywords.

Kind

Gets the type of the entity. Inherited from MimeEntity.

ListArchive

Gets or sets the list of URLs of the 'List-Archive' header.

ListHelp

Gets or sets the list of URLs of the 'List-Help' header.

ListOwner

Gets or sets the list of URLs of the 'List-Owner' header.

ListPost

Gets or sets the list of URLs of the 'List-Post' header.

ListSubscribe

Gets or sets the list of URLs of the 'List-Subscribe' header.

ListUnsubscribe

Gets or sets the list of URLs of the 'List-Unsubscribe' header.

MessageId

Gets or sets the unique identifier of the message.

Name

Gets or sets the suggested file name of this entity, if it is present. Inherited from MimeEntity.

Options

Gets or sets various options for MIME parser and writer. Inherited from MimeEntity.

Parent

Gets or sets the parent of this entity. Inherited from MimeEntity.

Parts

Gets the list of child parts of this entity. Inherited from MimeEntity.

Preamble

Gets or sets the preamble of this multipart entity. Inherited from MimeEntity.

Priority

Gets or sets the priority of the message.

ReadOnly

Gets or sets a value indicating whether the entity is read-only. Inherited from MimeEntity.

References

Gets or sets the list of identifiers of messages in the same "thread" of conversation.

ReplyTo

Gets or sets the list of addresses that should receive replies to this message.

Sender

Gets or sets the sender of this message.

SignatureStyle

Gets or sets the signature style of a signed entity container. This property is only intended for entities with signed content. Inherited from MimeEntity.

SignedContentInfo

Gets the SignedData object that contains information about signed content. This property is only set for entities with signed content. Inherited from MimeEntity.

Silent

Gets or sets a value indicating whether cryptographic providers are allowed to display any user interface (UI) when working with private keys. Inherited from MimeEntity.

Subject

Gets or sets the subject of the message.

To

Gets or sets the list of addresses of primary recipients of the message.

TransferEncoding

Gets or sets the TransferEncoding of the content of this entity. Inherited from MimeEntity.

Methods

Name Description
Clone()

Creates a copy of this message.

Decrypt()

Decrypts the contents of an enveloped entity. This method is only intended for entities with enveloped content. Inherited from MimeEntity.

Encrypt()

Encrypts the contents of an enveloped entity. This method is only intended for entities with enveloped content. Inherited from MimeEntity.

GetContentStream()

Returns the read-only stream representing a content of this entity. Inherited from MimeEntity.

GetContentStream(Boolean)

Returns the stream representing a content of this entity. Inherited from MimeEntity.

GetRawContentStream()

Returns the read-only stream representing a raw content of this entity. Only available for messages that were parsed with MimeOptions.KeepRawEntityBody flag. You probably need to use GetContentStream(Boolean) instead. Inherited from MimeEntity.

GetSignatureEntity()

Gets the signature entity if available. This can return this entity for signatures with inlined content. Inherited from MimeEntity.

Load(Stream)

Loads the MIME entity from the specified stream. Inherited from MimeEntity.

Load(String)

Loads the MIME entity from the specified file. Inherited from MimeEntity.

OnBrokenHeader(MimeUnparsableHeaderEventArgs)

Raises the UnparsableHeader event. Inherited from MimeEntity.

Save(Stream)

Saves the MIME entity to the specified stream. Inherited from MimeEntity.

Save(String)

Saves the MIME entity to the specified file. Inherited from MimeEntity.

SetContent(MimeEntity)

Sets the inner message of this entity to the specified message. Inherited from MimeEntity.

SetContent(Stream)

Sets the content of this entity to data read from the specified stream. Inherited from MimeEntity.

SetContent(Stream, String)

Sets the content of this entity to data read from the specified stream and sets media type and file name. Inherited from MimeEntity.

SetContent(Stream, String, String)

Sets the content of this entity to data read from the specified stream and sets media type and file name. Inherited from MimeEntity.

SetContent(Stream, String, String, TransferEncoding)

Sets the content of this entity to data read from the specified stream and sets media type, file name and transfer encoding. Inherited from MimeEntity.

SetContent(String)

Sets the content of this entity to the specified text. Inherited from MimeEntity.

SetContent(String, String)

Sets the content of this entity to the specified text and media type. Inherited from MimeEntity.

SetContent(String, String, Encoding)

Sets the content of this entity to the specified text, media type and character set. Inherited from MimeEntity.

SetContent(String, String, Encoding, TransferEncoding)

Sets the content of this entity to the specified text, media type and character set. Inherited from MimeEntity.

SetContentFromFile(String)

Sets the content of this entity to data read from the specified file. Inherited from MimeEntity.

SetContentFromFile(String, String)

Sets the content of this entity to data read from the specified file and sets file name. Inherited from MimeEntity.

SetContentFromFile(String, String, String)

Sets the content of this entity to data read from the specified file and sets media type and file name. Inherited from MimeEntity.

SetContentFromFile(String, String, String, TransferEncoding)

Sets the content of this entity to data read from the specified file and sets media type, file name and transfer encoding. Inherited from MimeEntity.

SetEnvelopedContent(MimeEntity, Certificate[])

Sets the content of this entity to the specified enveloped entity. Inherited from MimeEntity.

SetEnvelopedContent(MimeEntity, SymmetricKeyAlgorithmId, EncryptionParameters, Certificate[])

Sets the content of this entity to the specified enveloped entity. Inherited from MimeEntity.

SetEnvelopedContent(MimeEntity, SymmetricKeyAlgorithmId, Nullable<Int32>, EncryptionParameters, Certificate[])

Sets the content of this entity to the specified enveloped entity. Inherited from MimeEntity.

SetEnvelopedContent(MimeEntity, String, Certificate[])

Sets the content of this entity to the specified enveloped entity. Inherited from MimeEntity.

SetEnvelopedContent(MimeEntity, String, EncryptionParameters, Certificate[])

Sets the content of this entity to the specified enveloped entity. Inherited from MimeEntity.

SetSignedContent(MimeEntity, MimeSignatureStyle, Certificate[])

Sets the content of this entity to the specified signed content. Inherited from MimeEntity.

SetSignedContent(MimeEntity, MimeSignatureStyle, SignatureHashAlgorithm, Certificate[])

Sets the content of this entity to the specified signed content. Inherited from MimeEntity.

SetSignedContent(MimeEntity, MimeSignatureStyle, SignatureParameters, Certificate[])

Sets the content of this entity to the specified signed content. Inherited from MimeEntity.

SetSignedContent(MimeEntity, Certificate[])

Sets the content of this entity to the specified signed entity. Inherited from MimeEntity.

SetSignedContent(MimeEntity, SignatureParameters, Certificate[])

Sets the content of this entity to the specified signed content. Inherited from MimeEntity.

Sign()

Creates signatures for all signers that do not have one yet. This method is only intended for entities with signed content. Inherited from MimeEntity.

ToMessage()

Coverts the MimeEntity into a MimeMessage. Inherited from MimeEntity.

ToStream()

Returns a read-only stream that can be used to read the raw MIME message content. Copying all the content into another stream is identical to Save(Stream) method. Inherited from MimeEntity.

ValidateSignature()

Validates all digital signatures on this CMS/PKCS #7 signed message and validates all the signers' certificates. This method is only intended for entities with signed content. Inherited from MimeEntity.

ValidateSignature(Boolean, ValidationOptions)

Validates all digital signatures on this CMS/PKCS #7 signed message. Optionally, no signers' certificates are not validated, and the specified validation options are taken into account. This method is only intended for entities with signed content. Inherited from MimeEntity.

ValidateSignature(Boolean, ValidationOptions, CertificateChainEngine)

Validates all digital signatures on this CMS/PKCS #7 signed message. Optionally, no signers' certificates are not validated, and the specified validation options are taken into account. This method is only intended for entities with signed content. Inherited from MimeEntity.

Events

Name Description
ParsingHeader

Occurs when a MIME header is to be parsed. Inherited from MimeEntity.

UnparsableHeader

Occurs when an unparsable header is encountered while parsing a MIME message. Inherited from MimeEntity.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies