MailMessage Class
Namespace: Rebex.Mail
Assembly: Rebex.Mail.dll (version 7.0.9147)
Represents an e-mail message that can be saved, loaded, processed or sent.
Syntax
public class MailMessage
Inherited Members
Constructors
Name | Description |
---|---|
Mail |
Initializes an instance of an empty e-mail message. |
Mail |
Initializes an instance of Mail |
Properties
Name | Description |
---|---|
Alternate |
Gets the collection of alternate forms of the message body. |
Attachments | Gets the collection of attachments of this message. |
Bcc | Gets or sets the list of addresses of recipients that are not to be revealed to other recipients of the message. |
Body |
Gets the HTML body of the message, or an empty string if it has no HTML body. |
Body |
Gets the text body of the message, or an empty string if it has no text body. |
Can |
Gets a value indicating whether the message can be decrypted. |
CC | Gets the list of addresses of others who are to receive the message. |
Certificate |
Gets or sets the ICertificate |
Date | Gets or sets the origination date of this message. If origination date is not available, return the date specified by the first 'Received' header. |
Default |
Gets or sets the default charset for MIME body and headers. |
Encryption |
Gets an encryption algorithm used to encrypt an encrypted message. |
Envelope |
Gets or sets the envelope identifier to be transmitted along with the message and included in any DSNs issued. |
From | Gets or sets the list of authors of this message. |
Has |
Gets the value indicating whether the message has a HTML body. |
Has |
Gets the value indicating whether the message has a text body. |
Headers | Gets the list of headers of this entity. |
In |
Gets or sets the list of identifiers of messages to which the message is a reply. |
Is |
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. |
Is |
Gets a value indicating whether the message is encrypted. |
Is |
Gets a value indicating whether the message is signed. |
Message |
Gets or sets the unique identifier of the message. |
Priority | Gets or sets the priority of the message. |
Read |
Gets a value indicating whether the message is read-only. |
Received |
Gets the received date of this message. |
Recipients | Gets the collection of recipients of an encrypted message. |
References | Gets or sets the list of identifiers of messages in the same "thread" of conversation. |
Reply |
Gets or sets the list of addresses that should receive replies to this message. |
Resources | Gets the collection of embedded resources referred by message views. |
Sender | Gets or sets the sender of this message. |
Settings | Gets or sets MailMessage object settings. |
Signers | Gets the collection of signers of a signed message. |
Silent | Gets or sets a value indicating whether cryptographic providers are permitted to display any user interface (UI) when working with private keys. |
Subject | Gets or sets the subject of the message. |
To | Gets or sets the list of addresses of primary recipients of the message. |
Methods
Name | Description |
---|---|
Clone() | Creates a copy of this message. |
Create |
Creates a new message that is a reply to the current message. |
Create |
Creates a new message that is a reply to the current message. |
Create |
Creates a new message that is a reply to the current message. |
Decrypt() | Decrypts an encrypted message, making the content accessible. |
Encrypt(Mail |
Encrypts a message. |
Encrypt(MailEncryptionAlgorithm, IEnumerable<Certificate>) | Encrypts a message. |
Encrypt(Mail |
Encrypts a message. |
Encrypt(MailEncryptionParameters, IEnumerable<Certificate>) | Encrypts a message. |
Encrypt(Certificate[]) | Encrypts a message. |
Encrypt(IEnumerable<Certificate>) | Encrypts a message. |
Load(Byte[]) | Loads a mail message from its byte array representation. |
Load(Stream) | Loads a mail message from the supplied stream. |
Load(String) | Loads a mail message from the supplied file. |
Remove |
Removes a signature from a signed message. |
Save(Stream) | Saves the mail message to the supplied stream in MIME format. |
Save(Stream, Mail |
Saves the mail message to the supplied stream. |
Save(String) | Saves the mail message to the supplied file in MIME format. |
Save(String, Mail |
Saves the mail message to the supplied file. |
Sign(Mail |
Signs a message. |
Sign(MailSignatureParameters, IEnumerable<Certificate>) | Signs a message. |
Sign(Certificate[]) | Signs a message. |
Sign(IEnumerable<Certificate>) | Signs a message. |
To |
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. |
To |
Converts a Mail |
Validate |
Validates all digital signatures on a signed message and validates all the signers' certificates. |
Validate |
Validates all digital signatures on a signed message. The specified validation options are taken into account. |
Validate |
Validates all digital signatures on a signed message with the specified engine. The specified validation options are taken into account. |
Validate |
Validates all digital signatures on a signed message. Optionally, signers' certificates are not validated, and the specified validation options are taken into account. |
Validate |
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. |
Events
Name | Description |
---|---|
Parsing |
Occurs when a MIME header is to be parsed. |
Unparsable |
Occurs when an unparsable header is encountered while parsing a MIME message. |
Operators
Name | Description |
---|---|
Implicit(Mime |
Converts a Mime |