Connects to the IMAP server.
Namespace:
Rebex.Net
Assembly:
Rebex.Imap (in Rebex.Imap.dll)
Syntax
Visual Basic |
---|
Public Function Connect ( _ serverName As String, _ serverPort As Integer, _ security As SslMode _ ) As String |
C# |
---|
public string Connect( string serverName, int serverPort, SslMode security ) |
Parameters
- serverName
- Type: System..::..String
The server address - either a hostname or a dotted string address.
- serverPort
- Type: System..::..Int32
The server port (e.g. 143).
- security
- Type: Rebex.Net..::..SslMode
Connection security.