proposals icon indicating copy to clipboard operation
proposals copied to clipboard

Email Composer

Open cSparkle opened this issue 5 years ago • 9 comments

Plugin Request

Name: Email Composer Package: @capacitor-community/email-composer

Platform(s)

iOS Android

Existing Solutions

The most commonly used Cordova plugin can be found here. It appears to work well with Capacitor apps. It hasn't been updated in over a year, and it would be nice to have a Capacitor equivalent.

Description

Similar to the Cordova plugin linked above, this plugin should be able to:

  1. Obtain access to the device's native mail app
  2. Open the native mail app with pre-filled values provided via user input
  3. Be able to accept at minimum the following arguments:
  • Recipients
  • Sender
  • Message Subject
  • Message Body
  • Preferred Email Service (i.e. being able to choose between Gmail, Yahoo, Outlook, etc.)
  • Attachments (therefore, it should have the ability to access the device's file system)
  1. Send email and close the mail app, redirectly user back to original app.

cSparkle avatar Oct 15 '20 23:10 cSparkle

I've gotten about 50% of the way toward finishing an iOS implementation of this, and can continue if this proposal is accepted.

cSparkle avatar Oct 15 '20 23:10 cSparkle

@cSparkle I think would be a great addition to the Capacitor community! Would you be able to join our slack to coordinate?

imhoffd avatar Oct 21 '20 20:10 imhoffd

@dwieeb thanks for the quick reply! Joining now!

cSparkle avatar Oct 21 '20 22:10 cSparkle

Are there any news on this? If not I'd like to provide an official capacitor community plugin based on the existing ones.

What do I have to do next? I would like to update our app to capacitor 3 but we are currently unable to do so because of incompatibility issues of the existing plugins.

iphilgood avatar Jun 08 '21 05:06 iphilgood

@iphilgood i just started one as i got a error with the cordova one: https://github.com/EinfachHans/capacitor-email-composer It's just in first version with basic functionality's, but maybe already okay for you 😊

EinfachHans avatar Jun 10 '21 11:06 EinfachHans

@EinfachHans thank you so much 🙌🏽 I just checked it out and we actually need the methods hasPermission(), requestPermission(), isAvailable() and hasAccount() on both (iOS and Android) platforms.

Is there any release planned which provides the missing implementations? If I can support you with anything, I'm happy to help since we really want to upgrade to capacitor 3 😅

iphilgood avatar Jun 30 '21 06:06 iphilgood

@iphilgood You can raise those issues on that plugin's repo.

Sampath-Lokuge avatar Aug 20 '21 17:08 Sampath-Lokuge

@EinfachHans i added your plugin to awesome-capacitor if that is useful please take time to star the repo as well :)

riderx avatar Nov 18 '21 03:11 riderx

Is it possible to move the email-composer-plugin into this organization? It would make it a lot more official. I've just opened a PR there with fixes I made, but when I searched for it I wasn't sure how "official" it is, so having it here might be a good idea. Let me know if there's a way for me to push this forward. Either here or under capawesome I guess, both are where I check first for plugins.

HarelM avatar Jul 02 '25 06:07 HarelM