try this

 <CFMAILPARAM
file="C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\#file.serverfile#">




"Success is a journey, not a destination!!"



Doug Brown
----- Original Message -----
From: "Yves Arsenault" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 11:43 AM
Subject: RE: CFMAIL Attachment prob...


> My upload code goes like this (sorry I didn't include it):
> <cfif IsDefined("FORM.Attach1")>
> <cffile action="UPLOAD"
> destination="C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\"
> nameconflict="MAKEUNIQUE" filefield="attach1">
> <cfset CLIENT.Attach1Name=CFFILE.ClientFile>
> <cfset CLIENT.Attach1Size=CFFILE.FileSize>
> <cfif CLIENT.Attach1Size GT SizeLimit>
> <cffile action="DELETE"
> file="C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\#CLIENT.Attach1Nam
> e#">
> <cfset DeleteClientVariable("Attach1Name")>
> <cfset DeleteClientVariable("Attach1Size")>
> <cflocation url="dspAdmAttach.cfm?FileBig=yes">
> </cfif>
> <cflocation url="dspAdmAttach.cfm?list=Attach2">
>
> </cfif>
>
> It also runs a check on the file size with the SizeLimit Var.
>
> I also check the Directory with my FTP client after it was uploaded and it
> was there, I just get that error with the CFMAILPARAM tag...
>
> Yves
>
>
>
> -----Original Message-----
> From: Douglas Brown [mailto:[EMAIL PROTECTED]]
> Sent: April 12, 2002 3:36 PM
> To: CF-Talk
> Subject: Re: CFMAIL Attachment prob...
>
>
> Sample...first the file has to be uplloaded to the server
>
>
> <CFFILE ACTION="upload" filefield="fileToSend" destination="D:\mail_files\"
> nameconflict="MAKEUNIQUE">
> <CFMAIL server="mail.ircproductions.com"
>  TO=""
>  FROM=""
>  SUBJECT="">
>  <CFMAILPARAM file="D:\mail_files\#file.serverFile#">
> </CFMAIL>
>
>
> "Success is a journey, not a destination!!"
>
>
>
> Doug Brown
> ----- Original Message -----
> From: "Yves Arsenault" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Friday, April 12, 2002 11:09 AM
> Subject: CFMAIL Attachment prob...
>
>
> > This is a sample of code:
> >
> > <cfdirectory action="LIST"
> > directory="C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\"
> > name="mydir">
> >
> > <cfmail from="#email_from#" to="#email_to#" bcc="#email_bcc#"
> > cc="#email_cc#" subject="#email_sujet#" server="smtp.mergitech.com">
> > <cfmailparam name="Reply-To" value="""Administrateur""
> > <[EMAIL PROTECTED]>">
> > Thank you for trying........
> >
> > From:#email_from#
> > To:#email_to#
> > Cc:#email_cc#
> > Bcc:#email_bcc#
> > Date:#DateFormat(email_dateSent,"dd/mm/yyyy")#
> > Subject: #email_sujet#
> >
> > Body:
> > #email_body#
> >
> >
> > <cfmailparam
> > file="C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\#mydir.name#">
> > </cfmail>
> >
> > I've been getting this message:
> > Unable to attach file.
> > Cannot attach 'C:\Inetpub\htdocs\infotech\encorepromo\admin\attach\.' to
> the
> > mail message.
> >  The file does not exist.
> > The error occurred while processing an element with a general identifier
> of
> > (CFMAIL), occupying document position (8:1) to (8:130).
> >
> > The path in the CFMAILPARAM tag is supposed to be the actual address on
> the
> > server.
> > At least that's what I was told this afternoon by one of the techs.
> >
> > Any Ideas?
> >
> > Also, can I use something like ExpandPath("//attach/#whatever#") in a
> > CFMAILPARAM tag?
> >
> > Thanks alot all,
> > I work in a school with alot of kids around..........my brain is turning
> to
> > fudge from all the noise!!
> > Yves Arsenault
> > Carrefour Infotech
> > 5,promenade Acadian
> > Charlottetown, IPE
> > C1C 1M2
> > [EMAIL PROTECTED]
> > (902)368-1895 ext.242
> > ICQ #117650823
> >
> >
> >
> >
>
> 
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.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