Establishes a connection to the IMAP server specified in the Imap constructor.

Namespace: Jscape.Email
Assembly: Jscape.Email (in Jscape.Email.dll) Version: 2.4.5.0

Syntax

C#
public virtual void Connect()
Visual Basic
Public Overridable Sub Connect
Visual C++
public:
virtual void Connect()

Examples

To establish a connection to an IMAP server, create a instance and provide the required hostname, username, and password.
CopyImap Connect
Imap myImap = new Imap("Imap.myserver.com", "username", "password");
myImap.Connect();

CopyImap Connect
myImap = New Imap("Imap.myserver.com", "username", "password")
myImap.Connect()

See Also