Quantcast
Viewing all articles
Browse latest Browse all 21760

help with cfmail url link

hi

my mail code is below:

 

<CFSET Path1 = "#APPLICATION.ROOTPATH#/index.cfm?fuseaction=customerReport&isemailPo pUP=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&isemailPo pUP=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..

Image may be NSFW.
Clik here to view.
fsd.png

 

how to resolve this issue


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>