The "client" filename isn't necessary what it will be called on the server,
particularly if you are repeatedly uploading the same file (testing and
development purposes).
I see you are using the "overwrite" attribute in this case so the filenames
should be the same. You may want to check the size of the file
(Server.FileSize) before emailing it as a precaution against sending huge
files.
Use this code in the target template instead:
<CFMAILPARAM FILE="e:\inetpub\hostroot\myclient.com\MailFiles\#ServerFile#">
Peter Tilbrook
Internet Applications Developer
Aspect Computing Pty. Ltd.
19-25 Moore Street
Turner, ACT, 2612
AUSTRALIA
http://www.aspect.com.au
Phone: (02) 6247 7677
Fax: (02) 6249 1620
Mobile: 0428 765 020
ACT ColdFusion Users Group - http://203.37.24.198
-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 September 2000 1:19
To: [EMAIL PROTECTED]
Subject: Uploading and Emailing a File
Travel Insurance Company wishes their clients to be able to upload small
text files to then be emailed to the Company when processing claims. File
is list of names, beneficiaries, birth dates....blah, blah....
So, following action is working great. File is saved to server properly
from the client input form:
<CFFILE ACTION="UPLOAD"
DESTINATION="e:\inetpub\hostroot\myclient.com\MailFiles\"
NAMECONFLICT="Overwrite"
FILEFIELD="ClientFile">
Same processing page needs to send email to the Insurance Company, which is
working properly as well. However, I can't seem to get the syntax correct
for it to include the above file as an attachment to the email....
<CFMAILPARAM FILE="e:\inetpub\hostroot\myclient.com\MailFiles\#ClientFile#">
I'm probably and idiot! Advise please??
Thanks
Les Mizzell
***********
Who needs Intel?
Athlon Inside!!!
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
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.mail-archive.com/[email protected]/
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.