-
Notifications
You must be signed in to change notification settings - Fork 249
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
Fixes for outlook #65
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@@ -63,7 +69,7 @@ public void mail(ReadableMap options, Callback callback) { | |||
if (options.hasKey("body") && !options.isNull("body")) { | |||
String body = options.getString("body"); | |||
if (options.hasKey("isHTML") && options.getBoolean("isHTML")) { | |||
i.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(body)); | |||
i.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(body).toString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, is this change necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes - it doesn't work in Outlook otherwise.
@chirag04 Can we please get this merged? |
Facing the same issue on my project. Could you please merge this MR. |
@chirag04
This PR includes fixes for Outlook. Outlook only gets attachments from ACTION_SEND and it also needs the output of Html.fromHtml(body) to return a string.