Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfx_mail and file attachments...file is .tmp for recipient

Status
Not open for further replies.

snix1

Programmer
Dec 12, 2000
107
US
Hi! I have a template using cfform with enctype="multipart/form-data". I have an input field in the form with type="file". This allows the users to browse their file directories for the file to attach. My cfx_mail in the action file looks like:

<cfx_mail TO = &quot;me@myserver.com&quot;
FROM = &quot;#email#&quot;
SUBJECT = &quot;CALL FOR PRESENTATIONS APPLICATION&quot;
SERVER = &quot;servername&quot;
MIMEATTACH = &quot;#filename#&quot;
Headers=&quot;X-Mailer: CFX_MAIL&quot;
TYPE = &quot;HTML&quot;
BODY = &quot;this is the body, etc., etc.&quot;>

This works o.k. the file is attached, but the filename of the attached file is something like ****.tmp. It has the .tmp file extensiona and I would like the real filename there.
Is there any way to do this? We are running Version 3 of ColdFusion server, by the way. Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top