Quantcast
Viewing all articles
Browse latest Browse all 1061

Best way to verify POP3 and/or connection?

Trying to make a "user proof" (yea right) app for android. What is the best way to verify that the server info and login info is correct?

With POP3, I see that there is a VerifyPopConnection which I believe verifys that we have a valid server name and settings... and there is a VerifyPopLogin which I believe verifies that the login username and password are valid. But then I read that Pop3BeginSession, which is optional, also checks these.

So the question is, if I want to do some error checking and passback information to the user that their server and/or login info is not correct... is it best to call both VerifyPop methods one after the other or use one OR the other OR use Pop3BeginSession? Seems calling both VerifyPop commands will just slow down the login process? I suppose I could "verify" these settings when they are entered in the setup and then just check the Pop3BeginSession for a failure at the actual login time???

The same I guess applies to IMAP accounts. The only thing I believe I can check is the actual IMAP.Connect method.

What do you recommend we do for these.

Thanks

Pete


Viewing all articles
Browse latest Browse all 1061

Trending Articles