2

I am using ActionSheetIOS to let user open his personal Email client on iOS. Unfortunately I do not know how to populate the recipient (to part) of the email. I didn't find anything in the RN documentation.

Any help?

marcelovca90
  • 2,673
  • 3
  • 27
  • 34
Mark
  • 1,069
  • 2
  • 21
  • 44
  • 1
    I don't think it's possible: http://www.openradar.me/14344842, http://www.openradar.me/12393854. There is a way to Swizzle around it: http://stackoverflow.com/questions/12623260/how-do-i-set-recipients-for-uiactivityviewcontroller-in-ios-6 – peterp Nov 24 '16 at 18:15
  • Thank you for the comment. Unfortunately I saw that it is impossible, and that's why I will try another way. – Mark Nov 25 '16 at 08:06

2 Answers2

2

Because as some guys confirmed that this thing is impossible, I think I will go for this other way: https://github.com/chirag04/react-native-mail

Mark
  • 1,069
  • 2
  • 21
  • 44
1

You could try opening the mail client with Linking.openURL() and a mailto: link.

something like: Linking.openURL('mailto:example@domain.com?subject=example&body=example').catch(err => console.error('An error occurred', err).