tschoffelen / react-native-email-link

📭 Open an email client from React Native (for 'magic link' type functionality).
MIT License
413 stars 74 forks source link

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

Closed Navipro70 closed 7 months ago

Navipro70 commented 1 year ago
  1. Open app
  2. Execute the next piece of code
    await openComposer({
      cancelLabel: 'Cancel',
      message: 'What app do you want to open?',
      title: "",
      to: example@gmail.com,
    });
  3. 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
tschoffelen commented 1 year ago

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.

Navipro70 commented 1 year ago

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/compose?mailto=example@example.com&subject=Hello&body=Text

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

McFly78 commented 1 year ago

For ProtonMail the URL is: URL="protonmail://mailto:foobar@foobar.org?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

tschoffelen commented 1 year ago

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

jnak commented 1 year ago

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

github-actions[bot] commented 8 months ago

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

github-actions[bot] commented 7 months ago

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.