flutter_emailer 0.0.2
flutter_emailer: ^0.0.2 copied to clipboard
This plugin in to open mail and send mail with different cases
flutter_emailer #
This plugin in to open mail and send mail with different cases.
Getting Started #
Different use cases are-
- openEmailApp()
- openEmailWithForSingleReceiverOnly(String receiverEmailId,List
- openEmailWithForMultipleReceiverOnly(List
- openEmailWithForSingleReceiverWithSubject(String receiverEmailId, String subject, List
- openEmailWithForMultipleReceiverWithSubject(List
- openEmailWithBodyOnly(String body, , List
Permissions #
Android #
- Add the following permissions to your
AndroidManifest.xml
file:
<queries>
<intent>
<action android:name="android.intent.action.SENDTO" />
<data android:scheme="mailto" />
</intent>
</queries>
Implementation #
- To use this package, add the package to your pubspec.yaml file:
dependencies:
flutter_emailer: ^0.0.1
- Import the package:
import 'package:flutter_emailer/flutter_emailer.dart';
- Usage:
void _openEmailWithSubject() async {
try {
await FlutterEmailer.openEmailWithForSingleReceiverWithSubject('receiverEmail@gmail.com',"Test Subject");
} catch (e) {
debugPrint('Error: $e');
}
}
Developed by:
Ruchita Bhaskar
Personal email - ruchita.bhaskar@gmail.com
Work email - ruchitab@fermion.in
LinkedIn - https://www.linkedin.com/in/ruchita-bhaskar-823488180
Publisher's LinkedIn - https://www.linkedin.com/company/fermioninfotech?trk=profile-position