ImapClient.CreateAsync
ImapClient.CreateAsync method
Creates a new instance of the ImapClient
class
public static Task<IAsyncImapClient> CreateAsync(string host, string username,
IAsyncTokenProvider asyncTokenProvider, int port = 143,
SecurityOptions securityOptions = SecurityOptions.Auto,
CancellationToken cancellationToken = default)
Parameter | Type | Description |
---|---|---|
host | String | The host name |
port | String | The port number |
username | IAsyncTokenProvider | The user name |
asyncTokenProvider | Int32 | The access token provider. |
securityOptions | SecurityOptions | Security mode for a mail client |
cancellationToken | CancellationToken | The cancellation token. |
See Also
- interface IAsyncImapClient
- interface IAsyncTokenProvider
- enum SecurityOptions
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email