flutter_mailer 0.4.0+1

  • README.md
  • Example
  • Installing
  • Versions
  • 94

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 - work in progress.

Getting Started #

Add to your pubspec dependencies, like so:

    sdk: flutter
  flutter_mailer: ^0.3.0

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.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.0+1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

Alternatively, your editor might support flutter packages 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';
Version Uploaded Documentation Archive
0.4.0+1 Feb 4, 2019 Go to the documentation of flutter_mailer 0.4.0+1 Download flutter_mailer 0.4.0+1 archive
0.4.0 Feb 2, 2019 Go to the documentation of flutter_mailer 0.4.0 Download flutter_mailer 0.4.0 archive
0.3.1 Nov 25, 2018 Go to the documentation of flutter_mailer 0.3.1 Download flutter_mailer 0.3.1 archive
0.3.0 Nov 22, 2018 Go to the documentation of flutter_mailer 0.3.0 Download flutter_mailer 0.3.0 archive
0.2.0 Nov 19, 2018 Go to the documentation of flutter_mailer 0.2.0 Download flutter_mailer 0.2.0 archive
0.1.2 Nov 15, 2018 Go to the documentation of flutter_mailer 0.1.2 Download flutter_mailer 0.1.2 archive
0.1.1 Sep 7, 2018 Go to the documentation of flutter_mailer 0.1.1 Download flutter_mailer 0.1.1 archive
0.1.0 Aug 18, 2018 Go to the documentation of flutter_mailer 0.1.0 Download flutter_mailer 0.1.0 archive
0.0.4 Jul 16, 2018 Go to the documentation of flutter_mailer 0.0.4 Download flutter_mailer 0.0.4 archive
0.0.3 Jul 15, 2018 Go to the documentation of flutter_mailer 0.0.3 Download flutter_mailer 0.0.3 archive

All 12 versions...

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 Apr 25, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.4.7


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.


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
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8