Copied to clipboard

Flag this post as spam?

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


  • Lee 1130 posts 3088 karma points
    Jan 01, 2010 @ 12:14
    Lee
    0

    Attach File To Email Form

    I have created a simple contact form that just emails the results via the workflow - I have an upload as one of the fields, and when the email comes through the attached file shows like so

    /umbraco/plugins/umbracoContour/files/8010091e-b80c-4296-95ac-91651a3b171e/testfile.txt

    Is there anyway to auto hyperlink the file to make it easier for the user to just click and download the file?

  • Per Ploug Hansen 208 posts 129 karma points
    Jan 04, 2010 @ 08:39
    Per Ploug Hansen
    0

    It is not possible with the built-in email workflow as the email content is very static so you would have to do your own workflow.to format the items in a specific way.

  • Dan Evans 631 posts 1018 karma points
    Jan 19, 2010 @ 14:05
    Dan Evans
    0

    If you use this method to generate the email it is possible as you can format the link in the XSLT:

    http://our.umbraco.org/forum/umbraco-pro/contour/6201-Sending-custom-emails-with-contour---howto

    e.g.

    <xsl:when test="contains(.//value,'/umbraco/plugins/umbracoContour/files')">
                  <td>
                    <a href="{concat('http://',umbraco.library:RequestServerVariables('HTTP_HOST'),.//value)}">
                      <xsl:value-of select="concat('http://',umbraco.library:RequestServerVariables('HTTP_HOST'),.//value)"/>
                    </a>
                   
                </td>
                </xsl:when>

Please Sign in or register to post replies

Write your reply to:

Draft