login about faq

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.



asked Jan 28 '16 at 21:07

pbrama's gravatar image


I will provide new methods to allow for the connect and authenticate to be in separate method calls. This would be the best solution. I'll also add a ConnectFailReason property that will be exactly the same as the Socket.ConnectFailReason.

If you need the best choice for what exists now, then I would recommend this: Don't call the Verify* methods up-front. If Pop3BeginSession fails, then follow up with a call to VerifyPopConnection. If that succeeds, then it's likely the login was invalid (and you could call VerifyPopLogin).

In any case, I realize this needs to be improved, and have the new methods likely by Monday.


answered Jan 29 '16 at 09:32

chilkat's gravatar image

chilkat ♦♦

We're these new methods ever implemented and made available?

(Feb 09 '16 at 20:11) pbrama

Yes, they are implemented and will be available in v9.5.0.56

(Feb 10 '16 at 07:06) chilkat ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jan 28 '16 at 21:07

Seen: 2,160 times

Last updated: Feb 10 '16 at 07:06

powered by OSQA