flutter_mailer 0.5.0-dev.5 copy "flutter_mailer: ^0.5.0-dev.5" to clipboard
flutter_mailer: ^0.5.0-dev.5 copied to clipboard

outdated

Share an email to device Email - Client supports multiple Attachments

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: #

  • ✅ android
  • ✅ ios

Getting Started #

Add to your pubspec dependencies, like so:

dependencies:
  flutter:
    sdk: flutter
  flutter_mailer: ^0.4.1+1

Instantiate mail options as follows:

import 'package:flutter_mailer/flutter_mailer.dart';

...
...

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

80
likes
0
pub points
96%
popularity

Publisher

unverified uploader

Share an email to device Email - Client supports multiple Attachments

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_mailer