expo-mail-composer allows you to compose and send emails quickly and easily using the OS UI. This module can't be used on iOS Simulators since you can't sign into a mail account on them.
|Android Device||Android Emulator||iOS Device||iOS Simulator||Web|
expo install expo-mail-composer
import * as MailComposer from 'expo-mail-composer';
Opens a mail modal for iOS and a mail app intent for Android and fills the fields with provided data. On iOS you will need to be signed into the Mail app.
A promise fulfilled with an object containing a
status field that specifies whether an
email was sent, saved, or cancelled. Android does not provide this info, so the status is always
set as if the email were sent.
Determine if the
MailComposer API can be used in this app.
A promise resolves to
true if the API can be used, and
trueon iOS when the device has a default email setup for sending mail.
falseon iOS if an MDM profile is setup to block outgoing mail. If this is the case, you may want to use the Linking API instead.
truein the browser and on Android.
A map defining the data to fill the mail.
An array of app's internal file URIs to attach.
An array of e-mail addresses of the BCC recipients.
Body of the e-mail.
An array of e-mail addresses of the CC recipients.
Whether the body contains HTML tags so it could be formatted properly. Not working perfectly on Android.
An array of e-mail addresses of the recipients.
Subject of the e-mail.