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