Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[android] Fix attachments and add option to set custom label for chooser #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rusel1989
Copy link

When sending mail with attachment correct action is ACTION_SEND, with current solution many email clients are ignroing the attachment. Also I've added chooserLabel option so people can specify their own title for chooser (localized etc..). Both changes have been tested on device and I am successfuly using it in my application.

@experimentsin
Copy link

FWIW, I'd just like to endorse this PR. I made equivalent changes locally before noticing that this covered the same ground.

As the PR author states, common mail apps like Google Inbox and Microsoft Outlook for Android don't understand ACTION_SENDTO when used with attachments. Android's documented guidance is to use ACTION_SEND in this scenario instead: https://developer.android.com/guide/components/intents-common.html#Email

Finally, being able to supply a title string from your localised JavaScript code string tables is also great.

nmorel pushed a commit to Mille-Volts/react-native-mail that referenced this pull request Feb 21, 2017
@kacyn
Copy link

kacyn commented Jun 9, 2017

@chirag04 Is it possible to merge this PR? This would also be very helpful to us.

@chirag04
Copy link
Owner

Can you rebase?

nmorel pushed a commit to Mille-Volts/react-native-mail that referenced this pull request Dec 18, 2017
Merged PR chirag04#42

(cherry picked from commit 563d90a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants