Imap.Connect Method
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9313)
Connect(String)
Connects to the IMAP server.
Declaration
public string Connect(string serverName)
Parameters
| Type | Name | Description | 
|---|---|---|
| String | serverName | The server address - either a hostname or a dotted string address.  | 
    
Returns
| Type | Description | 
|---|---|
| String | The welcome message returned by the server.  | 
    
Connect(String, Int32)
Connects to the IMAP server.
Declaration
public string Connect(string serverName, int serverPort)
Parameters
| Type | Name | Description | 
|---|---|---|
| String | serverName | The server address - either a hostname or a dotted string address.  | 
    
| Int32 | serverPort | The server port (e.g. 143).  | 
    
Returns
| Type | Description | 
|---|---|
| String | The welcome message returned by the server.  | 
    
Connect(String, SslMode)
Connects to the IMAP server. Use a port corresponding to the specified security mode.
Declaration
public string Connect(string serverName, SslMode security)
Parameters
| Type | Name | Description | 
|---|---|---|
| String | serverName | The server address - either a hostname or a dotted string address.  | 
    
| SslMode | security | Connection security.  | 
    
Returns
| Type | Description | 
|---|---|
| String | The welcome message returned by the server.  | 
    
Connect(String, Int32, SslMode)
Connects to the IMAP server.
Declaration
public string Connect(string serverName, int serverPort, SslMode security)
Parameters
| Type | Name | Description | 
|---|---|---|
| String | serverName | The server address - either a hostname or a dotted string address.  | 
    
| Int32 | serverPort | The server port (e.g. 143).  | 
    
| SslMode | security | Connection security.  | 
    
Returns
| Type | Description | 
|---|---|
| String | The welcome message returned by the server.  |