Свойство | Тип | Описание | |
---|---|---|---|
AddAddresses | void | ||
DkimGetDigestSigner | ISigner | ||
DkimHashBody | byte[] | ||
DkimWriteHeaderRelaxed | void | ||
DkimWriteHeaderSimple | void | ||
DkimWriteHeaders | void | ||
EnumerateMimeParts | IEnumerable |
||
GetMessageRecipients | IList |
||
GetMessageSigner | MimeKit.MailboxAddress | ||
GetMimePart | |||
GetSignedDkimSignatureHeader | |||
HeadersChanged | void | ||
InternetAddressListChanged | void | ||
IsWhiteSpace | bool | ||
MergeHeaders | IEnumerable |
||
MimeMessage | System | ||
MimeMessage | System | ||
ParseDkimSignature | string>.IDictionary | ||
ReferencesChanged | void | ||
ReloadAddressList | void | ||
ReloadHeader | void | ||
RemoveHeader | void | ||
ReplaceHeader | void | ||
SerializeAddressList | void | ||
SetHeader | void | ||
Sign | void | ||
TryGetMultipartBody | bool | ||
ValidateDkimSignatureParameters | void |
Метод | Описание | |
---|---|---|
Accept ( MimeKit.MimeVisitor visitor ) : void |
Dispatches to the specific visit method for this MIME message. This default implementation for MimeKit.MimeMessage nodes calls MimeKit.MimeVisitor.VisitMimeMessage. Override this method to call into a more specific method on a derived visitor class of the MimeKit.MimeVisitor class. However, it should still support unknown visitors by calling MimeKit.MimeVisitor.VisitMimeMessage. |
|
CreateFromMailMessage ( |
Creates a new MimeMessage from a System.Net.Mail.MailMessage. Creates a new MimeMessage from a System.Net.Mail.MailMessage. |
|
Encrypt ( MimeKit.Cryptography.CryptographyContext ctx ) : void |
Encrypt the message to the sender and all of the recipients using the specified cryptography context. If either of the Resent-Sender or Resent-From headers are set, then the message will be encrypted to all of the addresses specified in the Resent headers (Resent-Sender, Resent-From, Resent-To, Resent-Cc, and Resent-Bcc), otherwise the message will be encrypted to all of the addresses specified in the standard address headers (Sender, From, To, Cc, and Bcc). |
|
GetTextBody ( TextFormat format ) : string |
Gets the text body in the specified format. Gets the text body in the specified format, if it exists. |
|
Load ( |
Load a MimeMessage from the specified stream. Loads a MimeMessage from the given stream, using the specified ParserOptions. |
|
Load ( |
Load a MimeMessage from the specified stream. Loads a MimeMessage from the given stream, using the specified ParserOptions. If persistent is |
|
Load ( |
Load a MimeMessage from the specified file. Loads a MimeMessage from the file at the given path, using the specified ParserOptions. |
|
Load ( Stream stream, |
Load a MimeMessage from the specified stream. Loads a MimeMessage from the given stream, using the default ParserOptions. |
|
Load ( Stream stream, bool persistent, |
Load a MimeMessage from the specified stream. Loads a MimeMessage from the given stream, using the default ParserOptions. If persistent is |
|
Load ( string fileName, |
Load a MimeMessage from the specified file. Loads a MimeMessage from the file at the given path, using the default ParserOptions. |
|
MimeMessage ( ) : System |
Initializes a new instance of the MimeKit.MimeMessage class. Creates a new MimeMessage. |
|
MimeMessage ( IEnumerable |
Initializes a new instance of the MimeKit.MimeMessage class. Creates a new MIME message, specifying details at creation time. |
|
Prepare ( EncodingConstraint constraint, int maxLineLength = 78 ) : void |
Prepare the message for transport using the specified encoding constraints. Prepares the message for transport using the specified encoding constraints. |
|
Sign ( MimeKit.Cryptography.CryptographyContext ctx ) : void |
Sign the message using the specified cryptography context and the SHA-1 digest algorithm. If either of the Resent-Sender or Resent-From headers are set, then the message will be signed using the Resent-Sender (or first mailbox in the Resent-From) address as the signer address, otherwise the Sender or From address will be used instead. |
|
Sign ( MimeKit.Cryptography.CryptographyContext ctx, DigestAlgorithm digestAlgo ) : void |
Sign the message using the specified cryptography context and digest algorithm. If either of the Resent-Sender or Resent-From headers are set, then the message will be signed using the Resent-Sender (or first mailbox in the Resent-From) address as the signer address, otherwise the Sender or From address will be used instead. |
|
Sign ( MimeKit.Cryptography.DkimSigner signer, IList |
Digitally sign the message using a DomainKeys Identified Mail (DKIM) signature. Digitally signs the message using a DomainKeys Identified Mail (DKIM) signature. |
|
SignAndEncrypt ( MimeKit.Cryptography.CryptographyContext ctx ) : void |
Sign and encrypt the message to the sender and all of the recipients using the specified cryptography context and the SHA-1 digest algorithm. If either of the Resent-Sender or Resent-From headers are set, then the message will be signed using the Resent-Sender (or first mailbox in the Resent-From) address as the signer address, otherwise the Sender or From address will be used instead. Likewise, if either of the Resent-Sender or Resent-From headers are set, then the message will be encrypted to all of the addresses specified in the Resent headers (Resent-Sender, Resent-From, Resent-To, Resent-Cc, and Resent-Bcc), otherwise the message will be encrypted to all of the addresses specified in the standard address headers (Sender, From, To, Cc, and Bcc). |
|
SignAndEncrypt ( MimeKit.Cryptography.CryptographyContext ctx, DigestAlgorithm digestAlgo ) : void |
Sign and encrypt the message to the sender and all of the recipients using the specified cryptography context and the specified digest algorithm. If either of the Resent-Sender or Resent-From headers are set, then the message will be signed using the Resent-Sender (or first mailbox in the Resent-From) address as the signer address, otherwise the Sender or From address will be used instead. Likewise, if either of the Resent-Sender or Resent-From headers are set, then the message will be encrypted to all of the addresses specified in the Resent headers (Resent-Sender, Resent-From, Resent-To, Resent-Cc, and Resent-Bcc), otherwise the message will be encrypted to all of the addresses specified in the standard address headers (Sender, From, To, Cc, and Bcc). |
|
ToString ( ) : string |
Returns a System.String that represents the current MimeKit.MimeMessage. Returns a System.String that represents the current MimeKit.MimeMessage. |
|
Verify ( MimeKit.FormatOptions options, |
Verify the specified DKIM-Signature header. Verifies the specified DKIM-Signature header. |
|
Verify ( |
Verify the specified DKIM-Signature header. Verifies the specified DKIM-Signature header. |
|
WriteTo ( MimeKit.FormatOptions options, Stream stream, |
Writes the message to the specified output stream. Writes the message to the output stream using the provided formatting options. |
|
WriteTo ( MimeKit.FormatOptions options, string fileName, |
Writes the message to the specified file. Writes the message to the specified file using the provided formatting options. |
|
WriteTo ( Stream stream, |
Writes the message to the specified output stream. Writes the message to the output stream using the default formatting options. |
|
WriteTo ( string fileName, |
Writes the message to the specified file. Writes the message to the specified file using the default formatting options. |
Метод | Описание | |
---|---|---|
AddAddresses ( |
||
DkimGetDigestSigner ( DkimSignatureAlgorithm algorithm, |
||
DkimHashBody ( MimeKit.FormatOptions options, DkimSignatureAlgorithm signatureAlgorithm, DkimCanonicalizationAlgorithm bodyCanonicalizationAlgorithm, int maxLength ) : byte[] | ||
DkimWriteHeaderRelaxed ( MimeKit.FormatOptions options, Stream stream, |
||
DkimWriteHeaderSimple ( MimeKit.FormatOptions options, Stream stream, |
||
DkimWriteHeaders ( MimeKit.FormatOptions options, IList |
||
EnumerateMimeParts ( MimeKit.MimeEntity entity ) : IEnumerable |
||
GetMessageRecipients ( bool includeSenders ) : IList |
||
GetMessageSigner ( ) : MimeKit.MailboxAddress | ||
GetMimePart ( System.Net.Mail.AttachmentBase item ) : |
||
GetSignedDkimSignatureHeader ( |
||
HeadersChanged ( object o, MimeKit.HeaderListChangedEventArgs e ) : void | ||
InternetAddressListChanged ( object addrlist, |
||
IsWhiteSpace ( char c ) : bool | ||
MergeHeaders ( ) : IEnumerable |
||
MimeMessage ( |
||
MimeMessage ( |
||
ParseDkimSignature ( string signature ) : string>.IDictionary |
||
ReferencesChanged ( object o, |
||
ReloadAddressList ( HeaderId id, InternetAddressList list ) : void | ||
ReloadHeader ( HeaderId id ) : void | ||
RemoveHeader ( HeaderId id ) : void | ||
ReplaceHeader ( HeaderId id, string name, byte raw ) : void | ||
SerializeAddressList ( string field, InternetAddressList list ) : void | ||
SetHeader ( string name, string value ) : void | ||
Sign ( MimeKit.FormatOptions options, MimeKit.Cryptography.DkimSigner signer, IList |
Digitally sign the message using a DomainKeys Identified Mail (DKIM) signature. Digitally signs the message using a DomainKeys Identified Mail (DKIM) signature. |
|
TryGetMultipartBody ( Multipart multipart, TextFormat format, string &body ) : bool | ||
ValidateDkimSignatureParameters ( string>.IDictionary |
public Accept ( MimeKit.MimeVisitor visitor ) : void | ||
visitor | MimeKit.MimeVisitor | The visitor. |
Результат | void |
public static CreateFromMailMessage ( |
||
message | The message. | |
Результат |
public Encrypt ( MimeKit.Cryptography.CryptographyContext ctx ) : void | ||
ctx | MimeKit.Cryptography.CryptographyContext | The cryptography context. |
Результат | void |
public GetTextBody ( TextFormat format ) : string | ||
format | TextFormat | The desired text format. |
Результат | string |
public static Load ( |
||
options | The parser options. | |
stream | Stream | The stream. |
cancellationToken | A cancellation token. | |
Результат |
public static Load ( |
||
options | The parser options. | |
stream | Stream | The stream. |
persistent | bool | |
cancellationToken | A cancellation token. | |
Результат |
public static Load ( |
||
options | The parser options. | |
fileName | string | The name of the file to load. |
cancellationToken | A cancellation token. | |
Результат |
public static Load ( Stream stream, |
||
stream | Stream | The stream. |
cancellationToken | A cancellation token. | |
Результат |
public static Load ( Stream stream, bool persistent, |
||
stream | Stream | The stream. |
persistent | bool | |
cancellationToken | A cancellation token. | |
Результат |
public static Load ( string fileName, |
||
fileName | string | The name of the file to load. |
cancellationToken | A cancellation token. | |
Результат |
public MimeMessage ( IEnumerable |
||
from | IEnumerable |
The list of addresses in the From header. |
to | IEnumerable |
The list of addresses in the To header. |
subject | string | The subject of the message. |
body | MimeKit.MimeEntity | The body of the message. |
Результат | System |
public Prepare ( EncodingConstraint constraint, int maxLineLength = 78 ) : void | ||
constraint | EncodingConstraint | The encoding constraint. |
maxLineLength | int | The maximum allowable length for a line (not counting the CRLF). Must be between |
Результат | void |
public Sign ( MimeKit.Cryptography.CryptographyContext ctx ) : void | ||
ctx | MimeKit.Cryptography.CryptographyContext | The cryptography context. |
Результат | void |
public Sign ( MimeKit.Cryptography.CryptographyContext ctx, DigestAlgorithm digestAlgo ) : void | ||
ctx | MimeKit.Cryptography.CryptographyContext | The cryptography context. |
digestAlgo | DigestAlgorithm | The digest algorithm. |
Результат | void |
public Sign ( MimeKit.Cryptography.DkimSigner signer, IList |
||
signer | MimeKit.Cryptography.DkimSigner | The DKIM signer. |
headers | IList |
The headers to sign. |
headerCanonicalizationAlgorithm | DkimCanonicalizationAlgorithm | The header canonicalization algorithm. |
bodyCanonicalizationAlgorithm | DkimCanonicalizationAlgorithm | The body canonicalization algorithm. |
Результат | void |
public SignAndEncrypt ( MimeKit.Cryptography.CryptographyContext ctx ) : void | ||
ctx | MimeKit.Cryptography.CryptographyContext | The cryptography context. |
Результат | void |
public SignAndEncrypt ( MimeKit.Cryptography.CryptographyContext ctx, DigestAlgorithm digestAlgo ) : void | ||
ctx | MimeKit.Cryptography.CryptographyContext | The cryptography context. |
digestAlgo | DigestAlgorithm | The digest algorithm. |
Результат | void |
public Verify ( MimeKit.FormatOptions options, |
||
options | MimeKit.FormatOptions | The formatting options. |
dkimSignature | The DKIM-Signature header. | |
publicKeyLocator | IDkimPublicKeyLocator | The public key locator service. |
cancellationToken | The cancellation token. | |
Результат | bool |
public Verify ( |
||
dkimSignature | The DKIM-Signature header. | |
publicKeyLocator | IDkimPublicKeyLocator | The public key locator service. |
cancellationToken | The cancellation token. | |
Результат | bool |
public WriteTo ( MimeKit.FormatOptions options, Stream stream, |
||
options | MimeKit.FormatOptions | The formatting options. |
stream | Stream | The output stream. |
cancellationToken | A cancellation token. | |
Результат | void |
public WriteTo ( MimeKit.FormatOptions options, string fileName, |
||
options | MimeKit.FormatOptions | The formatting options. |
fileName | string | The file. |
cancellationToken | A cancellation token. | |
Результат | void |
public WriteTo ( Stream stream, |
||
stream | Stream | The output stream. |
cancellationToken | A cancellation token. | |
Результат | void |
public WriteTo ( string fileName, |
||
fileName | string | The file. |
cancellationToken | A cancellation token. | |
Результат | void |