flutter_email_sender 2.2.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 98

flutter_email_sender #

Allows send emails from flutter using native platform functionality.

In android it opens default mail app via intent. compileSdkVersion 28 is used in this plugin and it should be used in app too.

In iOS MFMailComposeViewController is used to compose an email.

Example #

final Email email = Email(
  body: 'Email body',
  subject: 'Email subject',
  recipients: ['example@example.com'],
  cc: ['cc@example.com'],
  bcc: ['bcc@example.com'],
  attachmentPath: '/path/to/attachment.zip',
  isHTML: false,

await FlutterEmailSender.send(email);

Getting Started #

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

For help on editing plugin code, view the documentation.

2.2.2 #

  • Updated Android dependencies.

2.2.1 #

  • Fixed problem with setting BCC in iOS. (Issue #29)

2.2.0 #

  • Improved email client app selection in Android.

2.1.0 #

  • Added HTML support - thanks to @trancanhluc.

2.0.3 #

  • Finished migration to Android X.

2.0.2 #

  • Configured external files path for FileProvider (Issue #10).

2.0.1 #

  • Finish future when email screen is closed. (Issue #15).

2.0.0 #

  • Migrated to AndroidX.

1.2.0 #

  • Updated gradle and Kotlin versions to work with Android Studio 3.3.

1.1.0 #

  • Updated Swift version to 4.2.

1.0.1 #

  • Fixed compilation problem in flutter > 0.10.0 version (issue #5).

1.0.0 #

  • Added custom file provider to work nicely with 'open_file' plugin (issue #3).

0.1.0 #

  • Fixed problem, that email body was not provided to mail app in iOS part.

0.0.4 #

  • Fixed AndroidRuntimeException when calling startActivity (Issue #1).

0.0.3 #

  • Fixed grammar.

0.0.2 #

  • Fixed homepage link.

0.0.1 #

  • Works on Android and iOS. On Android Intent is launched, on iOS MFMailComposeViewController is used to compose an email.


flutter_email_sender_example #

Demonstrates how to use the flutter_email_sender 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_email_sender: ^2.2.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_email_sender/flutter_email_sender.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

Health issues and suggestions

Document public APIs. (-1 points)

14 out of 14 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.


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