DomainKeysVerifyAsync Method (MailMessage, Smtp, DomainKeysTypes)

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public Task<DomainKeysVerifyResult> VerifyAsync(
	MailMessage msg,
	Smtp dnsRequestor,
	DomainKeysTypes dkTypes
)

Parameters

msg
Type: MailBee.MimeMailMessage
The mail message to be verified.
dnsRequestor
Type: MailBee.SmtpMailSmtp
The instance of Smtp class to be used for making DNS queries.
dkTypes
Type: MailBee.SecurityDomainKeysTypes
Specifies which signatures to verify (classic DK, newer DKIM, or both).

Return Value

Type: TaskDomainKeysVerifyResult
A task that represents the asynchronous operation. The value of TResult parameter is the result of the verification.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionmsg or dnsRequestor is a null reference (Nothing in Visual Basic) or dnsRequestor.DnsServers collection is empty or FipsMode is enabled and DKIM verification is requested.
MailBeeExceptionAn error occurred and ThrowExceptions is true.
See Also