Archived Forum Post

Index of archived forum posts

Question:

Error Types supported in Chilkat Email IOS

Jul 16 '14 at 10:23

Hi, Can i get a list of all error types or error codes supported by Chilkat Email library in iOS ?


Answer

To Be more specific, we would like to get the error codes instead of last error text. Example : If I try to login using wrong password, following is the log for last error text

    2014-07-10 17:59:40.569 QHEMail[30400:90b] ChilkatLog:
  Login:
    DllDate: Jun 23 2014
    ChilkatVersion: 9.5.0.40
    UnlockPrefix: Anything for 30-day trial
    Architecture: Little Endian; 32-bit
    Language: IOS Objective-C
    VerboseLogging: 0
    login: iphone.springct@gmail.com
    ConnectionType: SSL/TLS
    isOK:
      Failed to find OK line in response.
    --isOK
    Failed.
  --Login
--ChilkatLog

From above, we cannot determine that the error is because of wrong password/ no connectivity/ some other issue. If we can determine this, we will be able to display our custom error message to user from our EMail Client App.


Answer

Unfortunately, at this time there is no comprehensive list of error codes that could be returned in a single error code. You could look at the contents of the imap.LastResponse property to see the IMAP server's last response. For a failed login, you'll get this:

aaab NO Login failed.