| ISmtpClientVerifyAsync Method |
Asynchronously verify the existence of a mailbox address.
Namespace: MailKit.Net.SmtpAssembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax Task<MailboxAddress> VerifyAsync(
string address,
CancellationToken cancellationToken = default
)
Parameters
- address String
- The mailbox address.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskMailboxAddressThe expanded mailbox address.
Exceptions Remarks
Verifies the existence a mailbox address with the SMTP server, returning the expanded
mailbox address if it exists.
See Also