"An existing connection was forcibly closed by the remote host"

0 votes
asked Nov 14, 2010 by Nermeen Fathy (150 points)
edited Mar 21, 2011

Hi All I am a new user for rebex POP3 I tried to get list of my mail messages on gmail but the error above appeared

    Pop3 client = new Pop3();


    client.Connect("pop.gmail.com");

please any one tell me if "pop.gmail.com" is not correct, or what is the problem? also I tried to enable ssl,but the error still hold

thanks in advance

Applies to: Rebex Secure Mail

1 Answer

0 votes
answered Nov 15, 2010 by Lukas Pokorny (100,910 points)
edited Nov 15, 2010
 
Best answer

Gmail's POP3 server uses implicit SSL, which means that Pop3Security.Implicit and port 995 need to be specified when calling the Imap object's Connect method.

Please have a look at How to connect to Gmail using POP3 for more information and sample code.

...