Flutter/外部ライブラリ/メール送信/flutter mailer
提供: 初心者エンジニアの簡易メモ
flutter_mailerとは
公式
https://pub.dev/packages/flutter_mailer
インストール
dependencies: flutter_mailer: ^0.4.1+1
サンプル
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);