IAsyncSmtpClient.ValidateCredentialsAsync

IAsyncSmtpClient.ValidateCredentialsAsync method

Executes credentials validation

public Task<bool> ValidateCredentialsAsync(IConnection connection = null, 
    CancellationToken token = default)
ParameterTypeDescription
connectionIConnectionConnection to a server
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

True if authentication was successful, otherwise false.

See Also