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

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

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).

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