Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

CFMail attachment problem with ColdFusion MX 7

Posted on 2006-07-18
3
Medium Priority
?
589 Views
Last Modified: 2013-12-24
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?
0
Comment
Question by:incapital
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 13

Accepted Solution

by:
usachrisk1983 earned 1000 total points
ID: 17130891
Hmm, from my MS Outlook days I remember that getting the ATT*.dat files usually meant that the message had something embedded that couldn't be read by the client, or wasn't being processed properly at the sending mail server side.

Try removing the type from your cfmailparam and see if the server/client will send it properly.
0
 
LVL 3

Author Comment

by:incapital
ID: 17131121
You are correct. Removing the mime type from the cfmailparam tag did it. Many thanks.
0
 

Expert Comment

by:TimmyAllmark
ID: 27353729
Same solution worked for me too!
0

Featured Post

Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question