0

I have been trying to rename the file attachment for some time and cannot figure it out. Am running CF10 ad have tried this:

<cfmail from="#fromAddress#" 
    to="#trim(toAddress)#" 
    subject="#trim(subject)#"
    type="#emailType#" 
    bcc="#bcc#"
>
<cfmailparam file="D:\Production_www4\uploads\11\WENS Crisis Overview - Healthcare-OPT.pdf" disposition="attachment" type="application/PDF">
        

But the problem is it does come properly, but just a generic name PDF Document. PDF which if I got that I would never open.

Is there a way I can rename the filename?

Thank you so much!!!

rrk
  • 15,677
  • 4
  • 29
  • 45
Scott
  • 459
  • 2
  • 10
  • try something like this - – luke May 26 '21 at 11:21
  • 2
    Adobe added support for it in CF2016 (CF10 is eol'd). For CF10, try specifying the file name in the `disposition` attribute https://stackoverflow.com/questions/782066/changing-filename-of-attachment-in-cfmail – SOS May 26 '21 at 12:41

0 Answers0