open_mail
A Flutter package to query the device for installed email apps and open them programmatically.
1.2.1
18K downloads/mo
#2278 most downloaded on pub.dev
Cuboid-Inc/open_mail
What this package is like to depend on
Last release 9 months ago
03 Nov 2025
Ships fairly regularly
a new release about every 2 months
Nearly every release is documented
notes for 12 of 12 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
12 releases · first in 2024
2 releases in the last 12 months
see the full history below
Release timeline
12 releases · Nov 2024 to Nov 2025Releases
latest 12-
1.2.103 Nov 2025Release notes
Open source →Added
- Comprehensive migration documentation for v1.2.0 API changes
- Complete usage examples for custom mail app picker implementation
- Detailed explanation of MailAppPickerDialog replacement patterns
- Professional response to semantic versioning concerns raised by users
- Step-by-step migration guide from v1.1.0 to v1.2.0 with working code examples
Improved
- README documentation with better structure and clearer examples
- Added complete before/after code comparisons for migration
- Enhanced API documentation with new usage patterns
Documentation
- Updated README with Basic Usage and Advanced Usage sections
- Added migration benefits and rationale for API changes
- Provided professional explanation of versioning decisions
-
1.2.009 Sep 2025Release notes
Open source →What's Changed
- chore: set minSdkVersion & compileSdkVersion to follow Flutter by @AkhmadRamadani in #12
New Contributors
- @AkhmadRamadani made their first contribution in #12
Full Changelog: v1.0.0...v1.2.0
Release notes
Open source →Breaking Changes
- OpenMail.openMailApp: removed the nativePickerTitle parameter. Android now uses the system default chooser title.
- OpenMail.openSpecificMailApp: signature changed to openSpecificMailApp(String name). It now opens the target app’s inbox only and returns OpenMailAppResult, similar to openMailApp.
Changed
- iOS: Apple Mail inbox scheme switched from mailto:// to message:// for opening the inbox reliably.
- Android: native implementation for openMailApp ignores custom titles and uses Intent chooser with default title.
- Example and tests updated to match new APIs.
Fixed
- iOS detection of Gmail and other apps: clarified and enforced LSApplicationQueriesSchemes requirements so canOpenURL works and Gmail appears in the list when installed.
iOS Setup Notes
- Ensure these URL schemes are added to your app’s Info.plist under LSApplicationQueriesSchemes for detection:
- googlegmail, x-dispatch, readdle-spark, airmail, ms-outlook, ymail, fastmail, superhuman, protonmail, message
Migration
- Replace OpenMail.openMailApp(nativePickerTitle: '...') with OpenMail.openMailApp().
- Replace OpenMail.openSpecificMailApp(name, emailContent) with OpenMail.openSpecificMailApp(name).
-
1.1.025 May 2025Release notes
Open source →Added
- Robust fallback logic for Apple Mail on iOS: always uses
mailto:for compose, ensuring pre-filled fields work reliably. - Improved compose URL generation for Gmail and other supported apps.
- Comprehensive error handling and fallback to
mailto:for all mail apps if custom scheme fails.
Changed
- Cleaned up and productionized code: removed all debug/print statements and development-only code.
- Ready for production release.
All notable changes to this project will be documented in this file.
- Robust fallback logic for Apple Mail on iOS: always uses
-
1.0.125 May 2025Release notes
Open source →Bug Fixes
- Fixed mail app detection in Android release builds.
- Resolved "Abstract classes can't be instantiated!" error caused by GSON serialization issues in release mode.
- Updated the JSON serialization for app data to use JSONObject directly instead of GSON to prevent ProGuard/R8 obfuscation problems.
- Added proper null safety handling in native code for email content fields.
- Updated ProGuard rules to correctly keep necessary classes and their members.
- Ensured consistent creation of
Appobjects in Kotlin code.
-
1.0.014 May 2025Release notes
Open source →Major Upgrade
- Migrated Android plugin to v2 embedding and modern APIs.
- Updated Android build to use AGP 8.2.2, Kotlin 1.8.22, compileSdk 35, and minSdk 26.
- Improved compatibility with latest Flutter and Android versions.
- Fixed platform channel and plugin registration issues.
-
0.0.704 Jan 2025Release notes
Open source →Fix and Improve Documentation
- Fix some deprecated dependency and update documentaiton.
-
0.0.604 Jan 2025Release notes
Open source →Improvement
- Downgrade platform version from 3.1.6 to 3.1.0 to remove conflict dependecies.
-
0.0.519 Nov 2024Release notes
Open source →Added
Improved documentation for better clarity on package usage.
Fixed
Minor typos and formatting issues in the README file.Release notes
Open source →Added
- Improved documentation for better clarity on package usage.
Fixed
- Minor typos and formatting issues in the README file.
-
0.0.419 Nov 2024 -
0.0.319 Nov 2024Release notes
Open source →Changed
- Updated README with clearer instructions and added Key Features section.
Fixed
- Resolved minor inconsistencies in the example code.
-
0.0.219 Nov 2024 -
0.0.119 Nov 2024Release notes
Open source →Initial Release
- First release of
open_mail, providing basic functionality to open mail applications on supported platforms.
- First release of