我如何在我的项目中起诉 EDMessage 框架?能否提供一些步骤。
我想使用发送邮件
NSString *text; // assume this exists this
headerFields = [NSMutableDictionary dictionary];
[headerFields setObject:@"Joe User <joe@example.com>" forKey:@"To"];
[headerFields setObject:@"Hi there" forKey:@"Subject"];
text = [text stringWithCanonicalLinebreaks];
mailAgent = [EDMailAgent mailAgentForRelayHostWithName:@"mail.example.com"];
[mailAgent sendMailWithHeaders:headerFields andBody:text];