IAsyncSmtpClient.ValidateCredentialsAsync
IAsyncSmtpClient.ValidateCredentialsAsync method
Executes credentials validation
public Task<bool> ValidateCredentialsAsync(IConnection connection = null, 
    CancellationToken token = default)
| Parameter | Type | Description | 
|---|---|---|
| connection | IConnection | Connection to a server | 
| token | CancellationToken | Propagates notification that operations should be canceled. | 
Return Value
True if authentication was successful, otherwise false.
See Also
- interface IConnection
 - interface IAsyncSmtpClient
 - namespace Aspose.Email.Clients.Smtp
 - assembly Aspose.Email