Solved

CFMail attachment problem with ColdFusion MX 7

Posted on 2006-07-18
3
566 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help Fix A 403 error 13 104
IPA - can it be run on a web server? 3 147
Problem to get function 52 100
listing all functions in JavaScript 19 180
Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
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 integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

863 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

25 Experts available now in Live!

Get 1:1 Help Now