react-native-email-link icon indicating copy to clipboard operation
react-native-email-link copied to clipboard

[IOS] Recipient's email address is not filled for YandexMail and ProtonMail for openComposer

Open Navipro70 opened this issue 2 years ago • 5 comments

  1. Open app
  2. Execute the next piece of code
await openComposer({
      cancelLabel: 'Cancel',
      message: 'What app do you want to open?',
      title: "",
      to: [email protected],
});
  1. Choose ProtonMail or YandexMail as mail app

Current behavior: ProtonMail and YandexMail opens without filled field for recipient mail

ProtonMail YandexMail
ProtonMail without filled recipient YandexMail without filled recipient

Expected behavior: ProtonMail and YandexMail opens with filled field for recipient mail from to param

ProtonMail YandexMail
ProtonMail with filled recipient YandexMail with filled recipient

Navipro70 avatar Apr 11 '23 10:04 Navipro70

I don't have any accounts on either of these services, so won't be able to help fix this myself, but of course would happily accept a PR that changes the URL structure used here.

tschoffelen avatar Apr 21 '23 18:04 tschoffelen

Maybe you know where I can find correct params for this mails?

I've tried pass similar parameters in link as for web apps (Yandex only as I remember), but it haven't worked, I provide a link: https://mail.yandex.ru/[email protected]&subject=Hello&body=Text

Also I didn't find any documentation or API for both of them,

Navipro70 avatar Apr 26 '23 15:04 Navipro70

For ProtonMail the URL is: URL="protonmail://mailto:[email protected]?subject=SubjectTitleOfEMail&body=MessageBodyFooBar" https://github.com/ProtonMail/ios-mail/issues/27

I did a quick modification test for the function openComposer() on IOS and it's working for me. It needs to be optimised. ios.js.zip

McFly78 avatar May 23 '23 10:05 McFly78

Thanks @McFly78! Any chance you would be able to open a PR to incorporate this into the repo?

tschoffelen avatar Jun 04 '23 08:06 tschoffelen

@McFly78 +1 for sending a PR :) Seems like an easy fix

jnak avatar Sep 17 '23 15:09 jnak

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Mar 30 '24 01:03 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale. Please feel free to re-open if you feel this issue is still relevant.

github-actions[bot] avatar Apr 14 '24 02:04 github-actions[bot]