Simple & quick plugin for cross application data sharing of email fields in mobile development.
Flutter Mailer example app
Add to your pubspec dependencies, like so:
dependencies: flutter: 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: ['firstname.lastname@example.org'], isHTML: true, bccRecipients: ['email@example.com'], ccRecipients: ['firstname.lastname@example.org'], 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
compileSdkVersionto 28 in order to prevent build errors with AndroidX.
MailOptionsfor by passing choser and picking specific app. android only
androidManifest.xmlfor file sharing
Demonstrates how to use the flutter_mailer plugin.
For help getting started with Flutter, view our online documentation.
Add this to your package's pubspec.yaml file:
dependencies: flutter_mailer: ^0.4.1+1
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
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]
We analyzed this package on Jul 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.