OpenPop.NET POP3 Library Documentation

Pop3Client.Connect(String, Int32, Boolean) Method

Connects to a remote POP3 server using default timeouts of 60.000 milliseconds

public void Connect(
   string hostname,
   int port,
   bool useSsl


The hostname of the POP3 server
The port of the POP3 server
true if SSL should be used. false if plain TCP should be used.


Exception Type Condition
PopServerNotAvailableException If the server did not send an OK message when a connection was established
PopServerNotFoundException If it was not possible to connect to the server
ArgumentNullException If hostname is a null reference
ArgumentOutOfRangeException If port is not in the range [MinPort, MaxPort

See Also

Pop3Client Class | OpenPop.Pop3 Namespace | Pop3Client.Connect Overload List