Anyone ever encounter an issue with sending email with attachment?  It is 
being sent from a user-generated script for sending email to a list.

Instead of the attachment being sent as an attachment, it is being encoded 
in the body of the email.

I am using CFmailparam to attach the file to the email in cfmail.

This is what I am using:
<cfmail 
to="[EMAIL PROTECTED]" 
from="#get_email.Email_Address#" 
subject="#Replace(form.Email_Subject,"&##34;","""","all")#" timeout="45" 
query="get_maillist">
<cfif Len(Trim(form.Email_Attachment))>
<cfmailparam file="#ExpandPath('../attachments/#form.Email_Attachment#')#">
</cfif>

#Replace(form.Email_Subject,"&##34;", """",  "all")#

--
To unsubscribe please send email to #get_email.Email_Address#.

</cfmail>

I've tried playing around with sending different combinations of headers, 
such as these:

<cfmailparam name="Content-Type" value="multipart/alternative">
<cfmailparam name="Content-Disposition" value="attachment; 
filename=#form.Email_Attachment#">
<cfmailparam name="Content-Transfer-Encoding" value="8 bit">

I can get an attachment but the entire email becomes the attachment (text, 
images, all of it)


This is what I am getting when I tried to attach a gif to the email (just 
the file as cfmailparam, no others headers)


Date: Tue, 25 Feb 2003 13:50:57 -0600
From: [EMAIL PROTECTED]
Subject: test5
To: [EMAIL PROTECTED]

This is a multi-part message in MIME format.
---------82fd4b8682fd4b86
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

test5
--
To unsubscribe please send email to [EMAIL PROTECTED]

---------82fd4b8682fd4b86
Content-Type: image/gif
Content-Disposition: attachment; filename="exer1.gif"
Content-Transfer-Encoding: base64

R0lGODlhRgAPAKIAAJkzAMyZZqRJFrJlMsSJVqtWI7+ATbhwPSH5BAAAAAAALAAAAABGAA8A
AAPuCLrc/jDKSau9OOvNnfgfECqCCIZnuQjDoIpL0aopPVMBYexsUA4EwCCw2wmJhhwplzwo
fIBDLhAoHIuGI7U6gTJ0AuggyxgvuDrFsAQlitJmhlJACEq8q5xTSF7EAVVhVmpsJQR4fA1J
gzg6BoxSKkNFPwQDBwROYQ9QBVSWakhkdHovEAEuI4ABe0AgapZSVmGmTy8FTUIErzFSdhGI
UQZriWVkmSKoC7uAH5ABxSQDMcENiLQAcH1qZJ4KSdNStmHTwtHJ5UNdW6igyTLsPn/K2VuD
nVvMQ+wAnp/lHTSo8lDrwcCACBMqXIgwAQA7

---------82fd4b8682fd4b86--

Details:

CF5
Merak Email server from Icewarp

Any ideas or directions to look into would be appreciated.  Icewarp insists 
that they only receive the email with alteration, so somewhere I must need 
to add another set of headers?

Thanks for the help.

---
Craig Snyder
Information Architect/Certified ColdFusion Developer
ElectricFusion.com, LLC - www.electricfusion.com
Tel: 612/237-8107
Email: [EMAIL PROTECTED] 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to