Question:
Hi, In my Application i am using following code to login with Chilkat library 9.3.2-IOS-6.0 for xcode 4.5
-(int)loginId:(NSString )emailId password:(NSString )pass{
CkoImap *imap = [[CkoImap alloc] init] ;
BOOL success = NO;
success = [imap UnlockComponent: @"unlock code"];
if (success != YES) {
return kLOGIN_FAIL; //error code
}
//connect to imap server
success = [imap Connect:@"mail.gmail.com"];
if (success == NO) {
[imap Disconnect];
return kLOGIN_FAIL; //error code
}
//Login
success = [imap Login: emailId password: pass];
if (success != YES) {
[imap Disconnect];
return kLOGIN_FAIL; //error code
}
[imap Disconnect];
return kLOGIN_SUCCESS;
}
But the function [imap Login: emailId password: pass]; return no i have check email id and pass word it is working on web browser and it was working with same code earlier.
Check the contents of the LastErrorText property. I don't see how a login failure could be caused by an iOS version difference. Also, I can assure you that the IMAP login functionality is working fine (if it weren't then literally hundreds of customers would be reporting the problem) -- the most likely cause is that you're simply passing an incorrect login and/or password. Do some basic debugging to verify your input strings.