Solved

CFMail attachment problem with ColdFusion MX 7

Posted on 2006-07-18
3
565 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
3 Comments
 
LVL 13

Accepted Solution

by:
usachrisk1983 earned 250 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
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…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now