Connects to server.

Namespace:  Lesnikowski.Client
Assembly:  Mail (in Mail.dll) Version: 3.0.10245.1711

Syntax

C#
public void Connect(
	string host,
	int port,
	bool useSSL
)
Visual Basic (Declaration)
Public Sub Connect ( _
	host As String, _
	port As Integer, _
	useSSL As Boolean _
)
Visual C++
public:
void Connect(
	String^ host, 
	int port, 
	bool useSSL
)

Parameters

host
Type: System..::.String
Host name or IP address.
port
Type: System..::.Int32
Port number.
useSSL
Type: System..::.Boolean
if true creates SSL connection

Exceptions

ExceptionCondition
Lesnikowski.Client..::.ServerException -ERR response, Connection error.

See Also