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。请大家帮我看看。
------解决方案--------------------------------------------------------
我最近也弄这个,也挺烦的。
------解决方案--------------------------------------------------------
你是不是用户名和密码是错的呢?我和你用的方法一样的,就是对的。用户名是你126的邮箱和密码的
------解决方案--------------------------------------------------------
我给你们都发了。