sendMail method
Future<void>
sendMail(
- List<
String> emailAddress, - String subject,
- String body,
- String? attachment,
- List<
String> ? cc, - List<
String> ? bcc,
override
Implementation
@override
Future<void> sendMail(List<String> emailAddress, String subject, String body,
String? attachment, List<String>? cc, List<String>? bcc) async {
await methodChannel.invokeMethod<bool>('sendMail', <String, dynamic>{
"emailAddress": emailAddress,
"subject": subject,
"body": body,
if (cc != null) "cc": cc,
if (bcc != null) "bcc": bcc,
if (attachment != null) "attachment": attachment,
});
}