Thanks Shane, obviously I've been working on this too long!

The form now sends attachments perfectly, but now I have another
problem.  I'd like the form display a preview of the data with
the upload file path before actually sending it.  I can't get the
"CFFILE" variable (FileContents) to pass over to the preview
page.  The CFFILE  comes out blank & the user has to repeat the "
Browse" step and re-upload the same file again.  I've tried:

 <INPUT TYPE="File" Name="FileContents" Value="#CFFILE.FileContents#">

 <INPUT TYPE="File" Name="FileContents" Value="#FORM.FileContents#">

<INPUT TYPE="File" Name="FileContents" Value="#NewsletterFile#">

Is there another way to attach a file to an email that is already located on
the
server without using CFFILE?

thanks again...
Kristin
[EMAIL PROTECTED]

----- Original Message -----
From: Shane Pitts <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 31, 2000 2:29 PM
Subject: RE: CFMAIL & CFFILE


> If that was a cut and paste it looks like you've got errors in the CFSET
> Try
>
> <CFOUTPUT><CFSET
>
NewsletterFile="d:\home\goldenfly.com\maillist\uploads\#File.ServerFile#"></
> CFOUTPUT>
>
>
> Shane
>
>
> -----Original Message-----
> From: Splash! Designs Ink. [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 31, 2000 10:57 AM
> To: [EMAIL PROTECTED]
> Subject: CFMAIL & CFFILE
>
>
> I am trying to get CFFILE variables from a form page passed
> to the MIMEATTACH attribute of CFMAIL.
>
> My form page looks like this:
> <!--- List owner submits mail & image attachment to list --->
>  <FORM ACTION="mail.cfm" METHOD=POST ENCTYPE="multipart/form-data">
> Subject: <INPUT NAME="Subject" SIZE="48">
> <TEXTAREA NAME="Body" ROWS=10 COLS=60>
> File Name: <INPUT NAME="FileName" TYPE="text" size="10">
> File: <INPUT NAME="FileContents" TYPE="file" size="10">
> <INPUT TYPE="Submit" VALUE=" Submit Message ">
> </FORM>
>
> My action page looks like this:
> <CFIF #ParameterExists(FileContents)# is "Yes">
>
>    <CFFILE ACTION="UPLOAD"
>     FILEFIELD="FileContents"
>     DESTINATION="d:\home\goldenfly.com\maillist\uploads\"
>     NAMECONFLICT="OVERWRITE"
>     ACCEPT="image/jpeg, image/pjpeg, image/jpg, image/gif">
> <CFSET
>
NewsletterFile="d:\home\goldenfly.com\maillist\uploads\<CFOUTPUT>#File.Serve
> rFile#</CFOUTPUT>
> </CFSET>
> <CFQUERY NAME="GetList" DATASOURCE="GFMaillist1">
>  SELECT * FROM Subscribers
> </CFQUERY>
>
> <CFMAIL QUERY="GetList" SERVER="server name" PORT="25" TO="#Email#"
> FROM="list owner"
>  MIMEATTACH="#NewsletterFile#" SUBJECT="#Form.Subject#" >
> Date:  #DateFormat(Now(),'dddd, mmm dd, yyyy')#
>
> #FORM.Body#
>
> </CFMAIL>
> </CFIF>
>
> I am not sure how to get the CFFILE "FileContents" variable passed to the
> MIMEATTACH - I'm getting
> an error in resolving the parameter "NewsletterFile".  Any help please?
>
> thanks,
> Kristin
> [EMAIL PROTECTED]
>
>
> --------------------------------------------------------------------------
--
> --
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to