我正在使用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