👉🏼 Note: this Plugin is forked from EinfachHans Repository to work with Capacitor V4
This Plugin is used to open a native E-Mail Composer within your Capacitor App.
Please consider donating to EinfachHans as the original author:
This and other Open-Source Cordova/Capacitor Plugins are developed in free time. To help ensure this plugin is kept updated, new features are added and bugfixes are implemented quickly, please donate a couple of dollars (or a little more if you can stretch) as this will help me to afford to dedicate time to its maintenance. Please consider donating if you're using this plugin in an app that makes you money, if you're being paid to make the app, if you're asking for new features or priority bug fixes.
'**Table
npm install @racoonapps/capacitor-email-composer
npx cap sync
hasAccount() => Promise<{ hasAccount: boolean; }>
Checks if the User can send a Mail iOS: Check if the current Device is configured to send mail Android: Currently does nothing
Returns: Promise<{ hasAccount: boolean; }>
open(options?: OpenOptions | undefined) => Promise<void>
Open the E-Mail Composer
Param | Type | Description |
---|---|---|
options |
OpenOptions |
optional Options to prefill the E-Mail |
Prop | Type | Description |
---|---|---|
to |
string[] |
email addresses for TO field |
cc |
string[] |
email addresses for CC field |
bcc |
string[] |
email addresses for BCC field |
subject |
string |
subject of the email |
body |
string |
email body |
isHtml |
boolean |
indicats if the body is HTML or plain text (primarily iOS) |
The full Changelog is available here