How to Send Email From Your Expo App

DavidDavid October 27, 2026 7 min read

How to send email from your Expo app, in short

Use expo-mail-composer. Install it with npx expo install expo-mail-composer, import it with import * as MailComposer from 'expo-mail-composer', and call await MailComposer.composeAsync({ recipients: ['support@yourapp.com'], subject: 'Help with my account', body: 'Describe the problem here' }). On iOS that opens a mail modal inside your app; on Android it fires a mail app intent. Either way the fields arrive filled in and the user hits send.

That is the whole happy path. The rest of this guide is about the parts that bite in production: phones with no mail account set up, a Simulator that can never open the composer, a result status that means different things on each platform, and attachments.

What expo-mail-composer is (and is not) for

expo-mail-composer sends email from the user's own mail account, through the user's own mail app, after the user approves it. That makes it the right tool for user-initiated email: a Contact Support button, a Send Feedback screen, a Report a Bug flow that attaches a log file, or emailing a receipt or export the user just generated.

It is the wrong tool for anything your app needs to send on its own: welcome emails, password resets, magic links, receipts sent automatically. Those come from your backend through a transactional email service, never from the device. Our take: if the user would be surprised to see their mail app open, you want a server-side email, not the composer.

Step 1: Install expo-mail-composer

  1. Install: npx expo install expo-mail-composer. Using expo install picks the version that matches your SDK.
  2. Import: import * as MailComposer from 'expo-mail-composer'.
  3. Test in Expo Go on a real device. The reference lists the module as included in Expo Go, with support for Android, iOS (device only) and web.
  4. No permission prompt and no Info.plist usage string. Unlike the camera or location, opening a mail composer does not ask the user for access to anything.

One config detail for development and production builds: the package ships a config plugin that adds the URL schemes of common mail apps (Gmail, Outlook, Spark, Proton Mail and others) to LSApplicationQueriesSchemes in your iOS Info.plist. iOS needs those entries before your app is allowed to check whether those apps are installed, which is what getClients() does. Make sure 'expo-mail-composer' appears in the plugins array of your app.json, and add it if it does not.

Step 2: Check availability, then open the composer

Always call isAvailableAsync() before composeAsync(). It resolves to true when the device has a default email setup for sending mail. On iOS that means the user is signed into the Mail app, and the reference warns it can also return false when an MDM profile blocks outgoing mail, which is common on company-managed iPhones. In the browser it always returns true.

This check matters more than it looks. In the iOS module's source, composeAsync throws an error when the device cannot send mail, instead of quietly doing nothing. If you skip the check, a user without Apple Mail set up taps Contact Support and gets an error, or nothing visible at all if you swallow it.

The options composeAsync accepts (all optional)

OptionTypeWhat it does
recipientsstring[]To addresses
ccRecipientsstring[]CC addresses
bccRecipientsstring[]BCC addresses
subjectstringSubject line
bodystringBody text
isHtmlbooleanTreat the body as HTML. The reference notes it is not working perfectly on Android
attachmentsstring[]An array of your app's internal file URIs to attach

Our take on isHtml: keep support and feedback emails plain text. Since HTML rendering is imperfect on Android, a plain body with line breaks looks the same everywhere and is easier for the user to edit before sending.

Step 3: Handle the result honestly

composeAsync returns a promise with a status field. The possible values come from the MailComposerStatus enum:

MailComposerStatus values

StatusValueMeaning
SENT'sent'The user sent the email
SAVED'saved'The user saved it as a draft
CANCELLED'cancelled'The user closed the composer without sending
UNDETERMINED'undetermined'The outcome is not known

The catch: the reference states that Android does not provide this information, so on Android the status is always set as if the email were sent. Do not build logic that trusts 'sent' on Android, like marking a support ticket as submitted or showing a confident Thanks, we got it screen. A safer message works on both platforms: Your mail app has the details. Once you send it, we usually reply within a day (with whatever response time you actually commit to).

Step 4: Add a fallback for phones without mail set up

When isAvailableAsync() returns false, you still want the user to reach you. You have three options, from simplest to most polished:

  • A mailto link. Linking.openURL('mailto:support@yourapp.com?subject=Help') asks the operating system to open whatever mail app is installed. The reference itself suggests the Linking API when an MDM profile blocks the composer.
  • A list of installed mail apps. MailComposer.getClients() returns the mail clients installed on the device, each with a label. On iOS each client has a url scheme you can open with Linking; on Android each has a packageName you can open with expo-intent-launcher. This is also handy for an Open Mail App button on a check-your-inbox screen after sign-up.
  • Show the address. As a last resort, display your support address with a copy button so the user can paste it into whatever they use.

Our take: ship the mailto fallback plus a visible address. That covers almost every case with very little code. Add the getClients picker only if your app sends users to their inbox regularly, for example for email sign-in links.

Step 5: Attach files (logs, PDFs, exports)

attachments takes an array of file URIs that live inside your app's storage. That pairs naturally with things you generate on the device: a PDF from expo-print (see [how to generate a PDF in your Expo app](/blog/how-to-generate-a-pdf-in-your-expo-app)), a CSV export, or a text log you write before opening a bug report. Write the file first, then pass its uri: composeAsync({ recipients, subject, body, attachments: [fileUri] }).

If the user should be able to send the file anywhere, not just by email, the share sheet is the better tool. Our guide to [adding a share sheet to your Expo app](/blog/how-to-add-a-share-sheet-to-your-expo-app) covers that. A good rule: use the mail composer when the destination is you (support, bug reports), and the share sheet when the destination is the user's choice.

Testing: why it does nothing on the iOS Simulator

The reference is direct about this: the module cannot be used on iOS Simulators, because you cannot sign into a mail account on them. isAvailableAsync() returns false there, so if your fallback works you will see the mailto path instead. That is useful for testing the fallback, but to test the real composer you need a physical iPhone with an account signed into the Mail app.

Test four cases before shipping: an iPhone with Mail set up (composer opens, status is accurate), an iPhone without Mail set up (fallback runs), an Android phone (mail app opens, status always reads sent), and cancelling halfway on iOS (status is cancelled, and your UI does not claim it was sent). Our guide to [debugging an Expo app on a device](/blog/how-to-debug-expo-app-on-device) covers getting builds onto real phones.

Have Claude Code build it for you

Open your project in the Claude Code desktop app and be specific. Left vague, AI-written code tends to call composeAsync with no availability check, trust the sent status on Android, and forget the fallback, so the button silently fails for every user without Apple Mail. A prompt that avoids all three:

Then add a line to your [CLAUDE.md](/blog/claude-md-for-expo-apps) such as "All support email goes through src/lib/contactSupport.ts; never call MailComposer directly" so a later session does not drop the fallback. A working support channel also helps at review time: Apple expects a way for users to reach you, which our guide on [how to pass Apple App Review](/blog/how-to-pass-apple-app-review) walks through.

The short version

To send email from your Expo app: install expo-mail-composer, check isAvailableAsync(), then call composeAsync with recipients, subject and body. Fall back to a mailto: link when it is unavailable, test on a real iPhone (never the Simulator), and do not trust the sent status on Android. For emails your app sends by itself, use a backend instead.

If you are building your first iOS app with Claude Code and Expo and want a second pair of eyes on it before App Review, bring it to App Store Launch Club. Members share their builds for feedback, and the [curriculum](/curriculum) covers the full path from first build to first users. Join at applaunchclub.co for $9 a month.

Free app-building tips, straight to your inbox

Short, practical drops on app ideas, validating fast, store listings, and passing app review. No spam, unsubscribe anytime.

Frequently asked questions

How do I send an email from an Expo app?

Install expo-mail-composer with npx expo install expo-mail-composer, then call MailComposer.composeAsync({ recipients, subject, body }). It opens the native mail composer pre-filled, and the user taps send.

Can expo-mail-composer send email without the user tapping send?

No. It opens the system mail UI with the fields filled in, and the user sends it from their own account. For emails your app sends automatically, such as password resets, send them from your backend.

Why does MailComposer not work on the iOS Simulator?

The module cannot be used on iOS Simulators because you cannot sign into a mail account on them. Test the composer on a physical iPhone with an account signed into the Mail app.

Why does composeAsync always return sent on Android?

Android does not report whether the email was sent, saved or cancelled, so expo-mail-composer always sets the status as if it were sent. Only rely on the status on iOS.

What if isAvailableAsync returns false?

The device has no default email setup, or on iOS an MDM profile may be blocking outgoing mail. Fall back to Linking.openURL with a mailto: link, or show your support address so the user can copy it.

Does expo-mail-composer need any permissions?

No permission prompt is involved. Its config plugin adds the URL schemes of common mail apps to LSApplicationQueriesSchemes in Info.plist so that getClients() can detect which mail apps are installed on iOS.

Can I attach a file with expo-mail-composer?

Yes. Pass an attachments array of your app's internal file URIs to composeAsync, for example a PDF you generated with expo-print or a log file you wrote to app storage.

Last reviewed by David on October 27, 2026

David

Written by

David

Founder and app builder

Keep reading

ExpoClaude Code

How to Add Notification Actions to Your Expo App

To add notification actions to an Expo app, register a category with Notifications.setNotificationCategoryAsync, give it action buttons (and optionally a text reply), set categoryIdentifier on the notification, then read response.actionIdentifier in a response listener. Here is every action option, how to handle taps when the app was closed, the Android and iOS differences, and a Claude Code prompt that wires it all up.

David 8 min
Read article
ExpoClaude Code

How to Schedule Local Notifications in Your Expo App

To schedule local notifications in an Expo app, install expo-notifications, set a notification handler, ask for permission, create an Android channel, then call scheduleNotificationAsync with your content and a trigger like DAILY, WEEKLY or DATE. Here is every trigger type, how to cancel and list what is scheduled, why Android reminders arrive late, and a Claude Code prompt that builds the whole reminder flow.

David 8 min
Read article

Ready to build it yourself?

Join App Store Launch Club, the #1 community for building and launching apps, for $9/month.

← Back to the blog