Establishes a connection to the POP server specified in the Pop 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 a POP server, create a instance and provide the required hostname, username, and password.
CopyPop Connect
Pop myPop = new Pop("Pop.myserver.com", "username", "password");
myPop.Connect();

CopyPop Connect
Dim myPop as Pop = Nothing
myPop = New Pop("Pop.myserver.com", "username", "password")
myPop.Connect()

See Also