GithubHelp home page GithubHelp logo

Comments (13)

AtanuCSE avatar AtanuCSE commented on July 29, 2024
'<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.

JwJason avatar JwJason commented on July 29, 2024

Still doesn't work with the fixed code.

from cordova-plugin-email-composer.

u2ill avatar u2ill commented on July 29, 2024

@JwJason,

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.

JwJason avatar JwJason commented on July 29, 2024

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.

craigcampbell avatar craigcampbell commented on July 29, 2024

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.

mirko77 avatar mirko77 commented on July 29, 2024

Trailing "," is not valid in "strict mode"

from cordova-plugin-email-composer.

hiniesta avatar hiniesta commented on July 29, 2024

Have same error, in this case, the

tags. All tr and td tags are removed.

from cordova-plugin-email-composer.

cgs avatar cgs commented on July 29, 2024

+1, also not working for me. HTML formatted email looks fine in iOS, not working in Android.

from cordova-plugin-email-composer.

bbisinger avatar bbisinger commented on July 29, 2024

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.

katzer avatar katzer commented on July 29, 2024

Its an Android issue, see https://github.com/katzer/cordova-plugin-email-composer#html-and-css-on-android

from cordova-plugin-email-composer.

bbisinger avatar bbisinger commented on July 29, 2024

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.

cgs avatar cgs commented on July 29, 2024

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.

bbisinger avatar bbisinger commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.