Comments (13)
'<h1>Test</h1><a href="http://google.com'">Test</a>'
your code is wrong. A extra ' just after the google.com
from cordova-plugin-email-composer.
Still doesn't work with the fixed code.
from cordova-plugin-email-composer.
I noticed you also have an extra comma after isHtml: true
Since that is the last parameter in the options object, you should not have a comma after it!
The following should work:
window.plugin.email.open({
subject: 'Test',
body: '<h1>Test</h1><a href="http://google.com">Test</a>',
isHtml: true
}, emailCallback);
from cordova-plugin-email-composer.
That is valid JS syntax. Have you tried reproducing the error on android emulator 4.4.2 API level 19?
from cordova-plugin-email-composer.
We are also having the same issue with it not working. If we simply do a H1 it comes across bold but any inline styling does not work.
from cordova-plugin-email-composer.
Trailing "," is not valid in "strict mode"
from cordova-plugin-email-composer.
Have same error, in this case, the
tags. All tr and td tags are removed.from cordova-plugin-email-composer.
+1, also not working for me. HTML formatted email looks fine in iOS, not working in Android.
from cordova-plugin-email-composer.
I am also experiencing the same problem with Android. Oddly, some inline css does work.. for example "margin-top:20px" works perfectly. "font-weight:bold" does not.Like hiniesta, all of my tr and td tags are being stripped out. I effectively cannot format my emails
from cordova-plugin-email-composer.
Its an Android issue, see https://github.com/katzer/cordova-plugin-email-composer#html-and-css-on-android
from cordova-plugin-email-composer.
Thanks for the update and updating the docs. I would include the note that inline CSS also does not work... this might save you from additional questions :-p
from cordova-plugin-email-composer.
I'm still having an issue with this, and I'm not sure if it's just me, or something not related to the plugin. I'm only using tags from the link referenced above (https://github.com/katzer/cordova-plugin-email-composer#html-and-css-on-android). My email looks formatted in the default Android client as well as Gmail. When I actually send the email, the formatting and any links get stripped. Any idea why?
from cordova-plugin-email-composer.
I'm not sure why that is, but it turns out that we can't have html content in our gmail/android emails. Th fact that you see it initially seems like something else entirely.
from cordova-plugin-email-composer.
Related Issues (20)
- How to attach files in iOS? HOT 1
- 'Cordova/CDVAvailability.h' file not found HOT 1
- How to handle email sent or not ? HOT 1
- Application crush after try to open client HOT 27
- cordova-plugin-email-composer does not work on iOS 13+ HOT 26
- Email Composer not working for IOS 13+ HOT 5
- Failed to build in ionic project HOT 5
- On Android 11, emailComposer.open() do nothing nor call error HOT 9
- Calling .open() crushes the app with targetSdk set to 30 on Android HOT 17
- Attachments problem in Outlook HOT 7
- Closing the dialog by clicking outside of it does not complete the promise (iOS) HOT 1
- Crash on Samsung Galaxy A12 / Android 11 HOT 4
- Queries are not added to AndroidManifest.xml HOT 18
- package androidx.core.content does not exist Android HOT 5
- able to Open only mail in ios HOT 3
- EmailComposer.getPlugin.getClients is not a function
- Runtime exception HOT 3
- App getting crash as getEmailClientIds() return zero HOT 5
- Email blocked in outbox on mail app (iPhone) HOT 1
- java.lang.RuntimeException: Unable to start activity ComponentInfo{...}, Failed to create webview. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-email-composer.