Hey group,
This is my first foray into sending email attachments via CF. I *almost*
have it working correctly. The problem is, if I try to upload a document
with a name like (for example) "my_document.doc" and the file doesn't
already exist on the server, the file gets uploaded with the name
"my_document.doc", but it does not get attached to the email.
If I go back and resubmit "my_document.doc", the NAMECONFLICT attribute
assigns it a new name. In this case, it DOES get attached to the email.
How can I ensure that EVERY attachment specified by a user gets attached?
Also, how do I allow for HTML attachments?
Here is my code in my action page:
**************************************************************
<cffile
destination="D:\mypath\uploaded_files\"
action="upload"
NAMECONFLICT="makeunique"
filefield="file">
<CFMAIL TO="[EMAIL PROTECTED]"
FROM="[EMAIL PROTECTED]"
SUBJECT="Feedback"
SERVER="our.server.mi"
MIMEATTACH="D:\mypath\uploaded_files\#file.serverfile#">
Email body here...
</cfmail>
******************************************************************
Thanks!
Terri
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists