我正在使用iPhone应用内电子邮件功能通过我的应用发送电子邮件。 电子邮件没问题,但我很难找出如何检索电子邮件发送到的电子邮件地址。 这里是我的代码:iPhone应用内电子邮件
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
picker.mailComposeDelegate = self;
[picker setSubject:@"Test"];
// Fill out the email body text
NSString *emailBody = [NSString stringWithFormat:@"This is a test data"];
[picker setMessageBody:emailBody isHTML:YES];
picker.navigationBar.barStyle = UIBarStyleBlack;
[self presentModalViewController:picker animated:YES];
[picker release];
有没有办法从这个函数retrive这些电子邮件地址:
- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error
谢谢!
好点。这确实是苹果可能希望保护的私人信息。所以,我想我必须通过我的后端代码来处理电子邮件的发送。唯一的问题是从现有的联系人中获取电子邮件。 Mailcore似乎是一个很好的选择...我会检查出来。 恩,非常感谢! – user315603 2010-05-13 15:51:34