In the future, some code would make it easier to troubleshoot the specific
problem.

That said, I'm not sure what you're doing wrong, but the general order of
your code should be something to the effect of:
1) Use CFFILE to accept the uploaded file, as in:

        <CFFILE ACTION="Upload"
                FILEFIELD="File"
                DESTINATION="C:\WinNT\Temp\"
                NAMECONFLICT="MakeUnique">

2) Use CFMAIL to send the email, attaching the newly uploaded file, as in:

        <CFMAIL TO="#FORM.To#" FROM="[EMAIL PROTECTED]" SUBJECT="#FORM.Subject#">
                <CFMAILPARAM FILE="C:\WinNT\Temp\#FILE.ServerFile#">

                Hello.  Here's the file.
        </CFMAIL>

HTH.  If not, send some code along.

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -----Original Message-----
> From: Adams, Stephen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 24, 2002 10:06 AM
> To: CF-Talk
> Subject: CFMAIL message resent, completed this time.
>
>
> **********************************************************************
> WESTMINSTER CITY COUNCIL
> Please refer to the disclaimer beneath this message
> **********************************************************************
>
> Hi (again),
>
> As I was saying, I have a form in which a user adds a Subject, Message and
> selects a Attachment on their local machine, this form is then
> submitted to
> another page that runs a CFMAIL tag that sends the email.  The problem is
> the attachment, I browse to the file attach it to the email then when the
> form is submitted the CFMAIL tag throws a error:
>
> Error Diagnostic Information
> Unable to attach file.
> Cannot attach 'C:\WINNT\TEMP\ACF474.tmp' to the mail message. The
> file does
> not exist.
> This is not the name of my attachment though (it was actually a
> jpg).  I do
> have the form set to, enctype="multipart/form-data", I can't see why the
> attachment is passed as it's orignal address.
>
> How can I get the attachment to be passed and sent correctly by the CFMAIL
> tag?
>
> Thanks
>
> (sorry about the unfinshed email sent earlier)
>
>
> **********************************************************************
> Westminster City Council switchboard:
> +44 20 7641 6000
> **********************************************************************
> This E-Mail may contain information which is
> privileged, confidential and protected from
> disclosure.  If you are not the intended recipient
> of this E-mail or any part of it, please telephone
> Westminster City Council immediately on receipt.
> You should not disclose the contents to any other
> person or take copies.
> **********************************************************************
>
> 
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to