DomainKeysVerifyAsync Method (MailMessage, Smtp)
async/await version of Verify(MailMessage, Smtp).

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

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.

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.
MailBeeExceptionAn error occurred and ThrowExceptions is true.
See Also