First, make sure that cfsavecontent doesn't introduce any spaces:
cfsavecontent variable=strTextcfoutput#myFile#/cfoutput/cfsavecontent
Second, I would include the file name in quotes in the
Content-Disposition header: cfheader name=Content-Disposition
value='attachment;
I am converting some code that originally used CFFILE to write the contents of
a variable to a file on the server and then attached it to an email and
emailed. For security reasons, we have switched to https:// and are providing
a link for an authenticated user that takes the contents of the
2 matches
Mail list logo