1
我如何在我的項目中起訴EDMessage框架?你能提供一些步驟嗎?EDMessage進口框架
我想給使用郵件
NSString *text; // assume this exists this
headerFields = [NSMutableDictionary dictionary];
[headerFields setObject:@"Joe User <[email protected]>" forKey:@"To"];
[headerFields setObject:@"Hi there" forKey:@"Subject"];
text = [text stringWithCanonicalLinebreaks];
mailAgent = [EDMailAgent mailAgentForRelayHostWithName:@"mail.example.com"];
[mailAgent sendMailWithHeaders:headerFields andBody:text];