CFMail attachment problem with ColdFusion MX 7
Posted on 2006-07-18
I have an application that produces email messages from database content. Messages may have one or more attachments. The attachments are uploaded to a folder on the CF server, and the full path is stored in the database.
I have been using cfmailparam to add the attachments to the message, but I am getting an unexpected result. The files are attached, but the file name and extension are altered. Rather than "myfile.pdf", for example, I get "ATT114257.dat‎". I am confident that I am passing the correct mime type into the cfmailparam tag.
<cfmailparam disposition="attachment" file="c:\myattachments\myfile.pdf" type="application/pdf">
Any suggestions as to how I can get cfmail to manage multiple attachments so that the file name and extension are preserved?