CTCoreAccount *account = [[CTCoreAccount alloc]init];
BOOL success = [account connectToServer:@"imap.126.com"
port:143
connectionType:CONNECTION_TYPE_PLAIN
authType:IMAP_AUTH_TYPE_PLAIN
login:@"name@126.com"
password:REC];
if (!success)
{ // Display the error contained in account.lastError
NSLog(@"%@\n",account.lastError);
}
返回的错误是Parse error。请大家帮我看看。 |
|