flutter_mailer 0.4.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 97

flutter_mailer #

pub package

Share email content via device Email Client - supports multiple Attachments #

Simple & quick plugin for cross application data sharing of email fields in mobile development.

Flutter Mailer example app

Supports: #

  • [x] android
  • [x] ios

Getting Started #

Add to your pubspec dependencies, like so:

    sdk: flutter
  flutter_mailer: ^0.4.1+1

Instantiate mail options as follows:

    final MailOptions mailOptions = MailOptions(
      body: 'a long body for the email <br> with a subset of HTML',
      subject: 'the Email Subject',
      recipients: ['example@example.com'],
      isHTML: true,
      bccRecipients: ['other@example.com'],
      ccRecipients: ['third@example.com'],
      attachments: [ 'path/to/image.png', ],

    await FlutterMailer.send(mailOptions);

note gmail and other apps Might parse HTML out of the body.

For help getting started with Flutter, view official online documentation.

For help on editing plugin code, view the documentation.

based off of react-native-mail

0.4.2 #

  • [Androind] return send future when app is returned to.

0.4.1+2 #

  • fix typo in ios UNAVAILABLE return

0.4.1+1 #

  • replace androidx appcompat with core dependency for simpler classpath

0.4.1 #

  • return platform error if no mail app available in ios

0.4.0+1 #

  • Set Android compileSdkVersion to 28 in order to prevent build errors with AndroidX.

0.4.0 #

  • Breaking change. Migrate from the deprecated original Android Support Library to AndroidX. This shouldn't result in any functional changes, but it requires any Android apps using this plugin to also migrate if they're using the original support library.

0.3.1 #

  • ios warning fixes
  • fix crash when attachment has unknow mimeType
  • display full file name with extention.

0.3.0 #

  • android - change to use "just once/always" menu instead of choser. this is a super small change but changes the flow, hence it's not a patch.

0.2.0 #

  • add appSchema prop to MailOptions for by passing choser and picking specific app. android only
  • add comments
  • android null checks

0.1.2 #

  • minor change in android
  • expand example with temp file upload

0.1.1 #

  • update android dependencies

0.1.0 #

  • remove the need to edit androidManifest.xml for file sharing

0.0.4 #

  • change attachment type from List<File> to List<String>.

0.0.3 #

  • fix homepage spelling mistake in pubspec

0.0.2 #

  • add initial ios support still work in progress, i'm not a ios devepoler, its the first time i wrote objective C code

0.0.1 #

  • TODO: Describe initial release.


flutter_mailer_example #

Demonstrates how to use the flutter_mailer plugin.

Getting Started #

For help getting started with Flutter, view our online documentation.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  flutter_mailer: ^0.4.2

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:flutter_mailer/flutter_mailer.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 16, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.28.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
image_picker ^0.6.2+3
path_provider ^1.5.1