iPhone in-App email

Posted by varunwg on Stack Overflow See other posts from Stack Overflow or by varunwg
Published on 2010-05-12T17:40:27Z Indexed on 2010/05/12 17:44 UTC
Read the original article Hit count: 400

Filed under:
|

Hi,

I am using iPhone in-App email feature to send email thru my app. The email goes fine but I am having hard time trying to figure out how to retrive email addresses to which the email was sent.

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];

Is there any way to retrive those email addresses from this function:

- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error

Thanks!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about email