I'm building a small react native app with Expo and needs a functionality to send e-mails from within the app. The user doesn't need to compose anything in the first place, so it's simply a matter of pushing a button that sends an e-mail to an address that the user types in.
My question is what the best architecture for this job is. So far I have looked into simply using the Fetch API and then calling the MailGun API. However, as far as I understand it's not best practice to expose the API key in plain text, so I have considered Cloud Functions from Firebase, but am not sure whether this would be a viable option. Can anyone help me by pointing me in the right direction?