Pop3ConnectAsync Method (String, Int32, Boolean)
async/await version of Connect(String, Int32, Boolean).

Namespace: MailBee.Pop3Mail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public Task<bool> ConnectAsync(
	string serverName,
	int port,
	bool pipelining
)

Parameters

serverName
Type: SystemString
The name or IP address of the POP3 server.
port
Type: SystemInt32
The port on which to communicate with the server. The standard POP3 port is 110. For TLS/SSL connections, dedicated port is 995 (however, TLS/SSL connections via regular port are possible too, see SslMode and StartTls topics).
pipelining
Type: SystemBoolean
Specifies whether to use commands pipelining if it's supported by the server.

Return Value

Type: TaskBoolean
A task that represents the asynchronous operation. The value of TResult parameter is true if a connection attempt succeeded; otherwise, false.
Exceptions
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
See Also