3 Replies Latest reply on May 15, 2013 6:41 AM by duncancumming

    help with cfmail url link

    gokul1242 Level 1

      hi

      my mail code is below:

       

      <CFSET Path1 = "#APPLICATION.ROOTPATH#/index.cfm?fuseaction=customerReport&isemailPopUP=Y&fileName=#trim (txt_fileName)#">

       

       

      <cfmail

          to=""

          from=""

          subject="">

       

      Please note that the following file has been posted '#trim(txt_fileName)#'.

       

       

      Direct Link to File: <#Path1#>

       

       

      </cfmail>

       

      Eg of the mail received

       

      s

      body: 

      body:  Dear

      body: 

      body: 

      body:  Please note that the following file has been posted '1  ColdFusion Coding Standards.docx'.

      body: 

      body: 

      body:  : 

      body:  Direct Link to File: <http://website.com/sales/index.cfm?fuseaction=customerReport&isemailPopUP=Y&fileName=1  ColdFusion Coding Standards.docx>

      body:  

      body: 

      body: 

       

      Now the problem is when the user clicks on the hyperlink to download the file ,special characters link _ (underscore) or some unicode characters are inserted in the file name between 1 and Coldfusion. because two empty spaces are  there in the file name .so the file is not downloaded..

      fsd.png

       

      how to resolve this issue