flutter_mailer
3.0.3, released 4 months ago by an unverified publisher
Share email content via device email client with support for multiple attachments.
What it does
Allows Flutter apps to open the device's native email client to compose and send emails with recipients, subject, body (including HTML), and multiple file attachments. It also provides utility methods to check if specific mail apps are installed or if the device can send emails.
AI-written summary of version 3.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to trigger the native email app to let users send emails with attachments.
- You need to send emails with HTML body support on Android and iOS.
Skip it when
- You need to send emails silently from the background without opening a mail client UI.
- You require cross-platform support beyond Android and iOS.
Strengths
- Supports multiple attachments.
- Supports HTML content in email bodies.
- Provides methods to check app installation status and ability to send mail.
Weaknesses
- Limited platform support (only Android and iOS).
- Relies on external email apps installed on the user's device.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add to pubspec.dependencies. Requires proper configuration for Android and iOS native email client interaction if needed.
final MailOptions mailOptions = MailOptions(
body: 'a long body for the email',
subject: 'the Email Subject',
recipients: ['example@example.com'],
);
final MailerResponse response = await FlutterMailer.send(mailOptions);Alternatives
Packages that do the same job and could replace flutter_mailer.
- url_launcher
If you only need a simple mailto URI launch without native attachments or complex compose controller features.
97Compare
Works with
Packages commonly used together with flutter_mailer: ones it builds on, ones built on it, and its own family.