This project is read-only.

APOPConnect() always return true even when username and password doesnt exist

Jan 18, 2013 at 1:15 AM
Edited Jan 18, 2013 at 1:16 AM

Hi, i have a problem regarding the apopconnect(). My app is to test if the client can successfully connect to the pop3 server.  The problem is that even if i input a username/password that doesnt exist, it still says it has successfuly connected. I have provided a sample code below.


Pop3Client client = new Pop3Client();



client.APOPConnect(host, port, username, password.Trim());

//successfuly connected.


catch(Exception e)


//Failed to connect to server




Also, in the Pop3Client class, inside the APOPConnect() method, there was a regex matching. The regex always returns false because the string being matched is always "+OK The Microsoft Exchange POP3 service is ready." and it doesnt satisfy the pattern : @"<.+@.+>".