简体   繁体   中英

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

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.

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM