Connects to server.
Namespace:
Lesnikowski.ClientAssembly: Mail (in Mail.dll) Version: 3.0.10245.1711
Syntax
| C# |
|---|
public void Connect( IPAddress ipAddress, int port, bool useSSL ) |
| Visual Basic (Declaration) |
|---|
Public Sub Connect ( _ ipAddress As IPAddress, _ port As Integer, _ useSSL As Boolean _ ) |
| Visual C++ |
|---|
public: void Connect( IPAddress^ ipAddress, int port, bool useSSL ) |
Parameters
- ipAddress
- Type: System.Net..::.IPAddress
IP address.
- port
- Type: System..::.Int32
Port number.
- useSSL
- Type: System..::.Boolean
if true creates SSL connection.
Exceptions
| Exception | Condition |
|---|---|
| Lesnikowski.Client..::.ServerException | -ERR response, Connection error. |