MailMessage Methods

The MailMessage type exposes the following members.

Methods
  NameDescription
Public methodAddAlternateView
Add an alternate view to message
Public methodAddAttachment
Add an attachment to message
Public methodAttachSignature(CmsSigner)
Creates a signed message. Creates a read-only copy of the specified MailMessage and adds a digital signature to it.
Public methodAttachSignature(X509Certificate2)
Creates a signed message. Creates a read-only copy of the specified MailMessage and adds a digital signature to it.
Public methodAttachSignature(CmsSigner, Boolean)
Creates a signed message. Creates a read-only copy of the specified MailMessage and adds a digital signature to it.
Public methodAttachSignature(X509Certificate2, Boolean)
Creates a signed message. Creates a read-only copy of the specified MailMessage and adds a digital signature to it.
Public methodCheckBounced
Checks whether this message can be treated as a bounce message.
Public methodCheckSignature
Checking signature exsisting MailMessage.
Public methodStatic memberCheckSignature(Stream)
Checks the signature of the specified eml message.
Public methodStatic memberCheckSignature(String)
Checks the signature of the specified eml file.
Public methodClone
Clones this instance
Public methodCreateReadReceipt
Creates the read receipt.
Public methodDecrypt
Decrypts this message
Public methodDecrypt(X509Certificate2)
Decrypts this message
Public methodDispose
Releases all resources used by the MailMessage
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources
Public methodDKIMSign
Signs this message using DKIM (DomainKeys Identified Mail) signature.
Public methodEncrypt(X509Certificate2)
Encrypts this message
Public methodEncrypt(X509Certificate2)
Encrypts this message
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through a collection.
Public methodGetHashCode
Returns a hash code for object
(Overrides ObjectGetHashCode.)
Public methodGetHtmlBodyText(Boolean)
Gets the message htmlbody as plain text.
Public methodGetHtmlBodyText(HyperlinkRenderingCallback)
Gets the message htmlbody as plain text.
Public methodGetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
Public methodGetType (Inherited from Object.)
Public methodImport
Imports message from stream
Public methodStatic memberLoad(Stream)
Load message from stream
Public methodStatic memberLoad(String)
Load message from file
Public methodStatic memberLoad(Stream, LoadOptions)
Load message from stream with additional options.
Public methodStatic memberLoad(String, LoadOptions)
Load message from file with additional options.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRecomposeTnefContent
Composes the TNEF content. Note, that tnef attachment is composed if a message initially contained TNEF and was loaded without FileCompatibilityMode.PreserveTnefAttachments flag, That is this method doesn't create tnef message out of the regular one.
Public methodRemoveSignature
Remove signature
Public methodSave(Stream)
Save message as a stream
Public methodSave(String)
Save message as a file
Public methodSave(Stream, SaveOptions)
Save message as a stream with additional options.
Public methodSave(String, SaveOptions)
Save message as a file with additional options.
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Public methodStatic memberValidateMessage(Stream)
Validate eml message for corresponding to mime specification.
Public methodStatic memberValidateMessage(String)
Validate eml message for corresponding to mime specification.
See Also