Skip to content
pubscout

open_mail_launcher

0.3.1, released 5 months ago by sinnoor.in

Open email applications and compose pre-filled emails on Android and iOS.

WASM-ready
$ flutter pub add open_mail_launcher
Source repository

What it does

A Flutter plugin to query installed email applications, launch the default or a specific email app, and compose emails with pre-filled content like recipients, subject, and body. It features a built-in picker dialog to handle multiple installed mail apps seamlessly.

AI-written summary of version 0.3.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Your app needs to open the user's email client to send feedback or contact support
  • You want to pre-fill email recipients, subjects, and bodies from within your Flutter app

Skip it when

  • You need to send emails directly from the app server-side without opening an external mail client

Strengths

  • Supports both Android and iOS cross-platform
  • Allows querying available email apps and handling multiple options with a picker dialog
  • Supports pre-filling recipients, CC, BCC, subjects, and body text

Weaknesses

  • Requires manual configuration of URL schemes in iOS Info.plist
  • iOS has no attachment support due to platform limitations

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

Android requires no extra setup, but iOS requires declaring email app URL schemes under LSApplicationQueriesSchemes in Info.plist.

import 'package:open_mail_launcher/open_mail_launcher.dart';

bool available = await OpenMailLauncher.isMailAppAvailable();
List<MailApp> apps = await OpenMailLauncher.getMailApps();
OpenMailAppResult result = await OpenMailLauncher.openMailApp();

Alternatives

Packages that do the same job and could replace open_mail_launcher.

Works with

Packages commonly used together with open_mail_launcher: ones it builds on, ones built on it, and its own family.