0

How do you get the email addresses that the mail composer sent to was?

I tried looking at this delegate:

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


}

but it seems that there's no way to get the email addresses

xonegirlz
  • 8,889
  • 19
  • 69
  • 127

3 Answers3

4

You can't. The interface is designed such that what the user enters is not visible to you.

If you tell us what you're trying to accomplish, we may be able to suggest an alternate API or solution.

Jonathan Grynspan
  • 43,286
  • 8
  • 74
  • 104
  • I have a mail composer, which is to invite people to use the app, I need to track how many email address has this user sent the invite to and also need it to track duplicates. Any idea? – xonegirlz Aug 11 '12 at 00:12
  • You can't do this with the built-in mail view controller. You would have to roll your own, but Apple frowns on tracking users by email address. – Jonathan Grynspan Aug 11 '12 at 00:52
0

You can't get the email addresses from mail composer.

One suggestion: If you know the name of the intended recipients, you can get the email addresses from the address book. Note that you will need to inform your users of the app's action, preferably with an option for them to proceed or cancel the action.

Rick
  • 1,818
  • 1
  • 15
  • 18
0

Please go through my same question, on which finally I concluded that There are no official Apple's API to get email addresses...

Retrieve E-mail in In-app in iPhone

Community
  • 1
  • 1
DShah
  • 9,768
  • 11
  • 71
  • 127