Pop3Client.CreateAsync

Pop3Client.CreateAsync method

Creates a new instance of the Pop3Client class

public static Task<IAsyncPop3Client> CreateAsync(string host, string username, 
    IAsyncTokenProvider asyncTokenProvider, int port = 110, 
    SecurityOptions securityOptions = SecurityOptions.Auto, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
hostStringThe host name
portStringThe port number
usernameIAsyncTokenProviderThe user name
asyncTokenProviderInt32The access token provider.
securityOptionsSecurityOptionsSecurity mode for a mail client
cancellationTokenCancellationTokenThe cancellation token.

See Also