我正在尝试将iPhone的邮件发送到任何邮件,我使用了skpsmtpmessage,并且在所有类型的模拟器中都可以使用SkpsmtpMessage(iPhone/iPad 4.3,iPhone/iPad 5.1,iPhone/iPad 6.0)。但是,当我尝试从(iPhone/iPad 5.0)发送时,它会给我以下对话框错误
the operation could not be completed. (OSStatus error - 9800.)
在此问题上有任何帮助吗?
在您的项目中查找文件SKPSMTPMessage.m
,然后修改CFDictionarySetValue
&以下,它有效 -
//CFDictionarySetValue(sslOptions, kCFStreamSSLLevel, kCFStreamSocketSecurityLevelTLSv1);
CFDictionarySetValue(sslOptions, kCFStreamSSLLevel, kCFStreamSocketSecurityLevelSSLv3);
似乎与iOS 5 和此SMTP应用程序存在一些兼容性问题,因为iOS开始使用TLS 1.2。
请参阅:http://developer.apple.com/library/ios/#technotes/tn2287/_index.html