hypery2k / cordova-email-plugin

Edit and send email messages
Apache License 2.0
44 stars 29 forks source link

HTML errors on Android #47

Open bdedardel opened 7 years ago

bdedardel commented 7 years ago

Hi,

Html email are not formatted anymore. Do you also have this issue ?

For example, I changed in EmailComposerImpl.java

private void setBody (String body, Boolean isHTML, Intent draft) {
        CharSequence text = isHTML ? Html.fromHtml(body) : 
        //draft.putExtra(Intent.EXTRA_TEXT, text);
        draft.putExtra(Intent.EXTRA_TEXT, Html.fromHtml("<p><b>TEST</b></p>"));
}

Result

cordovapluginemail

Env

Android 5.0

$ cordova -v
6.5.0

===== plugins =====
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-crosswalk-webview 2.3.0 "Crosswalk WebView Engine"
cordova-plugin-email 1.2.6 "EmailComposer"
cordova-plugin-file 4.3.1 "File"
cordova-plugin-geolocation 2.4.1 "Geolocation"
cordova-plugin-network-information 1.3.1 "Network Information"
cordova-plugin-splashscreen 4.0.1 "Splashscreen"
cordova-plugin-statusbar 2.2.1 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-universal-clipboard 0.1.0 "Clipboard"
ionic-plugin-keyboard 2.2.1 "Keyboard"

===== platforms =====
Installed platforms:
  android 6.1.2
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/42480275-html-errors-on-android?utm_campaign=plugin&utm_content=tracker%2F12875371&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F12875371&utm_medium=issues&utm_source=github).
hypery2k commented 7 years ago

see also #50

samnova commented 7 years ago

Any plans for a fix for this? I use the href for file links and these are no longer shown after the last rebuild.

Edit: I came across this http://stackoverflow.com/questions/41123912/send-html-email-with-gmail-6-11-6-using-intent so might be that gmail just dropped that support :(