we are using Aspose.Email version 3.2.1.0 to download email server, for both IMAP and Exchange. In case there is a connection failure, is there any way to know what is wrong? More specifically, I want to know whether it is
wrong URL, port, use SSL, server shut down or other server issues
wrong user name
wrong password
I would like it to be as specific as possible. Thanks.
I am afraid to share that there isn’t specific details available for each of your scenario. However, after few tests, here are the details that could be helpful to you in this regard.
ImapClient Details
When URL is wrong, following exception is raised:
a. IOException
b. Message = NameResolutionFailure
c. InnerException = NULL
When port number is wrong, following exception is raised:
a. IOException
b. Message = NameResolutionFailure
c. InnerException = A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 173.194.66.109:994
When User name is wrong
a. IMapException
b. Message = 005 BAD LOGIN already in progress.
When password is wrong
a. IMapException
b. Message = 005 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)