The MailMessage type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkMailMessage()()()()
Initializes an instance of an empty e-mail message.
Public methodSupported by the .NET Compact FrameworkMailMessage(MimeMessage)
Initializes an instance of MailMessage using a MimeMessage.

Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkClone
Creates a copy of this message.
Public methodSupported by the .NET Compact FrameworkCreateReply(MailAddress, ReplyBodyTransformation)
Creates a new message that is a reply to the current message.
Public methodSupported by the .NET Compact FrameworkCreateReply(MailAddress, ReplyBodyTransformation, Boolean)
Creates a new message that is a reply to the current message.
Public methodSupported by the .NET Compact FrameworkDecrypt
Decrypts an encrypted message, making the content accessible.
Public methodSupported by the .NET Compact FrameworkEncrypt(array<Certificate>[]()[][])
Encrypts a message.
Public methodSupported by the .NET Compact FrameworkEncrypt(IEnumerable<(Of <<'(Certificate>)>>))
Encrypts a message.
Public methodSupported by the .NET Compact FrameworkEncrypt(MailEncryptionAlgorithm, array<Certificate>[]()[][])
Encrypts a message.
Public methodSupported by the .NET Compact FrameworkEncrypt(MailEncryptionAlgorithm, IEnumerable<(Of <<'(Certificate>)>>))
Encrypts a message.
Public methodSupported by the .NET Compact FrameworkEncrypt(MailEncryptionParameters, array<Certificate>[]()[][])
Encrypts a message.
Public methodSupported by the .NET Compact FrameworkEncrypt(MailEncryptionParameters, IEnumerable<(Of <<'(Certificate>)>>))
Encrypts a message.
Public methodSupported by the .NET Compact FrameworkEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetHashCode
Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkLoad(array<Byte>[]()[][])
Loads a mail message from its byte array representation.
Public methodSupported by the .NET Compact FrameworkLoad(Stream)
Loads a mail message from the supplied stream.
Public methodSupported by the .NET Compact FrameworkLoad(String)
Loads a mail message from the supplied file.
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkRemoveSignature
Removes a signature from a signed message.
Public methodSupported by the .NET Compact FrameworkSave(Stream)
Saves the mail message to the supplied stream in MIME format.
Public methodSupported by the .NET Compact FrameworkSave(String)
Saves the mail message to the supplied file in MIME format.
Public methodSupported by the .NET Compact FrameworkSave(Stream, MailFormat)
Saves the mail message to the supplied stream.
Public methodSupported by the .NET Compact FrameworkSave(String, MailFormat)
Saves the mail message to the supplied file.
Public methodSupported by the .NET Compact FrameworkSign(array<Certificate>[]()[][])
Signs a message.
Public methodSupported by the .NET Compact FrameworkSign(IEnumerable<(Of <<'(Certificate>)>>))
Signs a message.
Public methodSupported by the .NET Compact FrameworkSign(MailSignatureParameters, array<Certificate>[]()[][])
Signs a message.
Public methodSupported by the .NET Compact FrameworkSign(MailSignatureParameters, IEnumerable<(Of <<'(Certificate>)>>))
Signs a message.
Public methodSupported by the .NET Compact FrameworkSign(SignatureHashAlgorithm, array<Certificate>[]()[][])
Public methodSupported by the .NET Compact FrameworkSign(SignatureHashAlgorithm, IEnumerable<(Of <<'(Certificate>)>>))
Public methodSupported by the .NET Compact FrameworkSign(SignatureHashAlgorithm, MailSignatureStyle, array<Certificate>[]()[][])
Public methodSupported by the .NET Compact FrameworkSign(SignatureHashAlgorithm, MailSignatureStyle, IEnumerable<(Of <<'(Certificate>)>>))
Public methodSupported by the .NET Compact FrameworkToByteArray
Returns a byte array representation of the mail message. This is the same as the content of a file saved using the Save(String) message.
Public methodSupported by the .NET Compact FrameworkToMimeMessage
Converts a MailMessage to a MimeMessage.
Public methodSupported by the .NET Compact FrameworkToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkValidateSignature()()()()
Validates all digital signatures on a signed message and validates all the signers' certificates.
Public methodSupported by the .NET Compact FrameworkValidateSignature(MailSignatureValidationOptions)
Validates all digital signatures on a signed message. The specified validation options are taken into account.
Public methodSupported by the .NET Compact FrameworkValidateSignature(Boolean, ValidationOptions)
Validates all digital signatures on a signed message. Optionally, signers' certificates are not validated, and the specified validation options are taken into account.
Public methodSupported by the .NET Compact FrameworkValidateSignature(Boolean, ValidationOptions, CertificateChainEngine)
Validates all digital signatures on a signed message with the specified engine. Optionally, signers' certificates are not validated, and the specified validation options are taken into account.
Public methodSupported by the .NET Compact FrameworkValidateSignature(MailSignatureValidationOptions, ValidationOptions, CertificateChainEngine)
Validates all digital signatures on a signed message with the specified engine. The specified validation options are taken into account.

Operators

Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkAlternateViews
Gets the collection of alternate forms of the message body.
Public propertySupported by the .NET Compact FrameworkAttachments
Gets the collection of attachments of this message.
Public propertySupported by the .NET Compact FrameworkBcc
Gets or sets the list of addresses of recipients that are not to be revealed to other recipients of the message.
Public propertySupported by the .NET Compact FrameworkBodyHtml
Gets the HTML body of the message, or an empty string if it has no HTML body.
Public propertySupported by the .NET Compact FrameworkBodyText
Gets the text body of the message, or an empty string if it has no text body.
Public propertySupported by the .NET Compact FrameworkCanDecrypt
Gets a value indicating whether the message can be decrypted.
Public propertySupported by the .NET Compact FrameworkCC
Gets the list of addresses of others who are to receive the message.
Public propertySupported by the .NET Compact FrameworkCertificateFinder
Gets or sets the ICertificateFinder to be used to find certificates used to encrypt or sign the message.
Public propertySupported by the .NET Compact FrameworkDate
Gets or sets the origination date of this message. If origination date is not available, return the date specified by the first 'Received' header.
Public propertySupported by the .NET Compact FrameworkDefaultCharset
Gets or sets the default charset for MIME body and headers.
Public propertySupported by the .NET Compact FrameworkEncryptionAlgorithm
Gets an encryption algorithm used to encrypt an encrypted message.
Public propertySupported by the .NET Compact FrameworkEnvelopeId
Gets or sets the envelope identifier to be transmitted along with the message and included in any DSNs issued.
Public propertySupported by the .NET Compact FrameworkFrom
Gets or sets the list of authors of this message.
Public propertySupported by the .NET Compact FrameworkHasBodyHtml
Gets the value indicating whether the message has a HTML body.
Public propertySupported by the .NET Compact FrameworkHasBodyText
Gets the value indicating whether the message has a text body.
Public propertySupported by the .NET Compact FrameworkHeaders
Gets the list of headers of this entity.
Public propertySupported by the .NET Compact FrameworkInReplyTo
Gets or sets the list of identifiers of messages to which the message is a reply.
Public propertySupported by the .NET Compact FrameworkIsDraft
Gets or sets a value indicating whether this mail is considered a Draft. This value indicates whether the message can be modified in e-mail clients.
Public propertySupported by the .NET Compact FrameworkIsEncrypted
Gets a value indicating whether the message is encrypted.
Public propertySupported by the .NET Compact FrameworkIsSigned
Gets a value indicating whether the message is signed.
Public propertySupported by the .NET Compact FrameworkMessageId
Gets or sets the unique identifier of the message.
Public propertySupported by the .NET Compact FrameworkOptions Obsolete.
Public propertySupported by the .NET Compact FrameworkPriority
Gets or sets the priority of the message.
Public propertySupported by the .NET Compact FrameworkReadOnly
Gets a value indicating whether the message is read-only.
Public propertySupported by the .NET Compact FrameworkReceivedDate
Gets the received date of this message.
Public propertySupported by the .NET Compact FrameworkRecipients
Gets the collection of recipients of an encrypted message.
Public propertySupported by the .NET Compact FrameworkReferences
Gets or sets the list of identifiers of messages in the same "thread" of conversation.
Public propertySupported by the .NET Compact FrameworkReplyTo
Gets or sets the list of addresses that should receive replies to this message.
Public propertySupported by the .NET Compact FrameworkResources
Gets the collection of embedded resources referred by message views.
Public propertySupported by the .NET Compact FrameworkSender
Gets or sets the sender of this message.
Public propertySupported by the .NET Compact FrameworkSettings
Gets or sets MailMessage object settings.
Public propertySupported by the .NET Compact FrameworkSigners
Gets the collection of signers of a signed message.
Public propertySupported by the .NET Compact FrameworkSilent
Gets or sets a value indicating whether cryptographic providers are permitted to display any user interface (UI) when working with private keys.
Public propertySupported by the .NET Compact FrameworkSubject
Gets or sets the subject of the message.
Public propertySupported by the .NET Compact FrameworkTo
Gets or sets the list of addresses of primary recipients of the message.

Events

  NameDescription
Public eventSupported by the .NET Compact FrameworkParsingHeader
Occurs when a MIME header is to be parsed.
Public eventSupported by the .NET Compact FrameworkUnparsableHeader
Occurs when an unparsable header is encountered while parsing a MIME message.

See Also