xonegirlz
xonegirlz

Reputation: 8967

how to get email addresses from mail composer

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

Upvotes: 0

Views: 582

Answers (3)

DShah
DShah

Reputation: 9866

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

Upvotes: 0

Rick
Rick

Reputation: 1818

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.

Upvotes: 0

Jonathan Grynspan
Jonathan Grynspan

Reputation: 43472

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.

Upvotes: 4

Related Questions