Attaching and naming a file in cfmail

I have a simple cfmail with an attachment. The file on the server has one name, but I would like to call it something else when attaching to the letter. I tried:

<CFMAILPARAM FILE="#OriginalFile#" DISPOSITION="attachment; filename=""#AttachFile#""">

This works on some email clients:

  • Thunderbird - All is well
  • Outlook - No
  • Yahoo (on the desktop) - No
  • Yahoo (on android) - Yes
  • GMail - Yes

In any case, regardless of the mail client, can I force him to use the file name I want ?!

+4
source share

All Articles