Copied to clipboard

Flag this post as spam?

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


  • Mike Ranscombe 5 posts 25 karma points
    Jul 25, 2014 @ 11:25
    Mike Ranscombe
    0

    Using XSLT to send emails from Contour

    Hi,

    I'm using XSLT to format the email that's sent when a form is submitted in Contour. This is working fine, but I also have some logic in the XSLT to send other emails depending on the content submitted in the form. I'm using the following line:

    <xsl:value-of select="umbraco.library:SendMail(
    '[email protected]',
            '[email protected]',
            $subject,
            $bodytext,
            'true'
    )"/>

    where $bodytext contains the marked-up body of the email. It's working in that it's sending the additional email, but the body of the email is having the mark-up striped out so it only contains the text of the email. I've tried a few things but nothing has fixed this issue.

    Any ideas?

    Thanks,

    Mike

  • Michael Lykke 12 posts 75 karma points
    Aug 05, 2014 @ 16:07
    Michael Lykke
    0

    Don't know if this is the issue, but value-of has an attribute disable-output-escaping which could be set to "yes", like this: disable-output-escaping="yes".

    Also, it says in the wiki for the GetMedia method , that

    Note: To send the boolean value, use 1 or 0 (zero) or the real XSLT booleans true() and false() - anything else is very likely to be wrongly interpreted.

    So perhaps you should try

    <xsl:value-of select="umbraco.library:SendMail(
       '[email protected]',
       '[email protected]',
       $subject,
       $bodytext,
       1
    )"/>
    
Please Sign in or register to post replies

Write your reply to:

Draft