ios-mail icon indicating copy to clipboard operation
ios-mail copied to clipboard

Create email via url scheme

Open tedgonzalez opened this issue 5 years ago • 9 comments

Hi do you support or have plans to support opening an email editor via url scheme?

Similar feature request: https://protonmail.uservoice.com/forums/284483-feedback/suggestions/38271067-can-you-add-custom-url-scheme-support-in-the-mobil

tedgonzalez avatar May 13 '20 20:05 tedgonzalez

+1 one from me. My app allows users to send feedback either with Apple Mail or with Outlook, Gmail or Spark. It would be nice to be able to add ProtonMail to the list :-)

nemecek-filip avatar Jun 03 '20 06:06 nemecek-filip

This is a must have feature. Please add it to the app.

timespacedecay avatar Jun 06 '20 20:06 timespacedecay

Would be nice to have this feature... maybe someone can check the existing PR opened since 2019 that add this feature https://github.com/ProtonMail/ios-mail/pull/16

yeradis avatar Aug 07 '20 08:08 yeradis

This can be closed... There is no need for this, Apple gives the option now to set default email app

afern247 avatar Sep 01 '21 14:09 afern247

I think these are two separate issues. One is setting the default app, and the other is populating the message fields based on a url.

derekmorr avatar Sep 01 '21 15:09 derekmorr

Has this been implemented but this issue not marked as resolved? I've just had a look in the code. The App's info.plist has the required CFBundleURLSchemes for protonmail and mailto. AppDelete.swift has implemented func application(_ application: UIApplication, handleOpen url: URL) and handled those two on line 277. This makes me think the code is there...? Installed the app and tested. Yes it does work. Just need to work out the url parameters now. Why is this issue still open and not documented?

Seoras avatar Apr 12 '22 07:04 Seoras

Update: Using the ProtonMail code as a guide and trying various URL configurations I've worked out that the required URL format looks something like this: URL="protonmail://mailto:[email protected]?subject=SubjectTitleOfEMail&body=MessageBodyFooBar"

Seoras avatar Apr 12 '22 23:04 Seoras