tracker issue : CF-4019518

select a category, or use search below
(searches all categories and all time range)

New cfmailparam feature

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Neil Pugh / Neil Pugh (Neil Pugh)

Created: 07/10/2015

Components: Net Protocols, MAIL

Versions: 11.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Windows 7

Vote Count: 4

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on September 01, 2019 using build 2016.0.01.298513
Add an attribute called filename. If a programmer is using cfmailparam to attach a file to a cfmail email then they can use the new filename attribute to set the filename of the file to something different to that which is saved on the file system.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4019518

External Customer Info:
External Company:  
External Customer Name: Neil
External Customer Email:  
External Test Config: My Hardware and Environment details:



Hi Neil, Would you think, this would be a common use-case?
Comment by HariKrishna K.
6735 | July 15, 2015 11:53:53 PM GMT
I would guess so. I and other developers I have worked with tend to name files on the server in a way that describes the file based on the primary key of a database record the file is associated with or the date the file was saved on etc... For example a filename maybe something like this: 5432_20150804141613_ticket,pdf. This is obviously an ugly name to serve the file up as in an email. Perhaps it would be nice to attach the file with a name such as: ticket_guns_n_roses.pdf to the user. At present we would need to re-write the file name temporarily on the server before attaching it then renaming it back again.
Comment by External U.
6736 | August 04, 2015 07:48:59 AM GMT
We still would need to hear from more users, before we can consider this.
Comment by HariKrishna K.
6737 | September 23, 2015 09:59:12 PM GMT
+1 - This is a valid ask for allowing developers to assign a new filename w/o having to create temp files on the server first. When reading this ticket, I assumed the attribute already existed (b/c it's just logical that this attribute would exist). The attribute should be named "filename" to match the same attribute being proposed in another CF12 ER.
Vote by External U.
6740 | September 24, 2015 01:19:23 PM GMT
I back this. Certainly makes life easier and saves the developer having to write temp file solutions to the disk space.
Vote by External U.
6741 | October 13, 2015 02:03:45 AM GMT
This would be a useful attribute.
Vote by External U.
6742 | October 13, 2015 05:38:00 AM GMT
Added the new attribute called filename which sets the file name of the attachment as given in the filename attribute. Here is a the example with the filename attribute: <cfmail from="pavan@sample.sample" subject="filename test" to="raja@sample.sample" username="pavan@sample.sample" password="password" server="localhost"> <cfmailparam file="c:\Book2.xlsx" filename="Offers.xlsx"> Pavan Kumar Sannisetty </cfmail> Thanks, Pavan.
Comment by S V.
6738 | October 13, 2015 06:18:03 AM GMT
Glad to see this is making progress. This is going to save using inefficient file system processes to create and rename temporary files before emailing.
Vote by External U.
6743 | October 22, 2015 10:41:31 AM GMT
Hi Pavan, Looks good. Thanks! -Aaron
Comment by External U.
6739 | December 04, 2015 05:37:16 AM GMT
Hi Adobe, I've verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Thanks!, -Aaron
Comment by Aaron N.
31255 | September 01, 2019 08:27:15 AM GMT