Connects to a remote POP3 server using default timeouts of 60.000 milliseconds
Parameters
- hostname
- The hostname of the POP3 server
- port
- The port of the POP3 server
- useSsl
- true if SSL should be used. false if plain TCP should be used.
Exceptions
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