Here's what I do with email attachments:
<cfmail from="#EmailFrom#" to="#EmailTo#" replyto="#EmailFrom#"
failto="#EmailBounce#" subject="#EmailSubject#" mailerid="Our Email
Sender" charset="utf-8">
<!--- headers --->
<cfmailparam name="Precedence" value="Bulk" />
<cfmailparam name="Importance" value="High" />
<cfmailparam name="Sensitivity" value="Confidential" />
<!--- extra headers for logging who the message was for --->
<cfmailparam name="X-Email-Subject" value="#EmaiLSubject#" />
<cfmailparam name="X-Email-ID" value="#Trim(Spool.spool_user_id)#" />
<cfmailparam name="X-Email-Name" value="#EmailName#" />
<cfmailparam name="X-Email-Address" value="#EmailAddr#" />
<!--- images attachments --->
<cfloop from="1" to="#ArrayLen(Images)#" index="x">
<cfmailparam file="#images[x].file#" type="#getMimeType(Images
[i].file)#" disposition="inline" contentid="#images[x].cid#" />
</cfloop>
<!--- body content --->
<cfmailpart type="plain" charset="us-ascii">#EmailText#</cfmailpart>
<cfmailpart type="html" charset="us-ascii">#EmailHTML#</cfmailpart>
</cfmail>
A few key points:
* Make sure you are using either CFMX 6.1 with the updater or CFMX 7
for this to work best.
* Give your attachments a "type" attribute.
* Do a <cfif FileExists()> before the <cfmail> statement to make sure
the file is there.
See if any of that helps.
--
Damien McKenna - Web Developer - [EMAIL PROTECTED]
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
#include <stdjoke.h>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247079
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4