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
>
>
>
> 
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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