Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    Jan 12, 2009 @ 10:58
    Ismail Mayat
    1

    sendmail ignoring html

    Guys,

    I am using umbraco v4. In my xslt i have a simple form which upon submission sends an email. My email code looks like this

    [code]







    [/code]

    The email gets sent however html is stripped out. I have tried a number of email clients but the html is always stripped out. Anyone any ideas?

    Regards

    Ismail

  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    Jan 12, 2009 @ 11:35
    Ismail Mayat
    0

    Guys,

    Sort of got this working. If I build the body of the email like this

    [code]

    [/code]

    The html is not stripped out. Thankfully my email is small but i guess with a big email it will look a bit messy. If anyone can shed light on why calling a template to build the email doesnt work that would be most helpful.

    Regards

    Ismail

  • Jonas Eriksson 930 posts 1825 karma points
    Dec 17, 2009 @ 08:38
    Jonas Eriksson
    1

    Hi Ismail, I guess you could just keep everything but the xslt-functions inside CData-tags:

    http://our.umbraco.org/forum/using/ui-questions/5963-How-to-keep-html-tags-in-a-variable-%28For-use-with-Sendmail%29?p=0#comment21544

  • Jonas Eriksson 930 posts 1825 karma points
    Jan 02, 2010 @ 12:50
    Jonas Eriksson
    0

    Also have a look at Jukka-Pekkas OuterXml-solution in that thread.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies