Thanks for the reply...

Still a little confused as to how to accomplish this.

This, as a test, works fine:

<cfmail to="[EMAIL PROTECTED]"  from=#name# subject="file test"
type="HTML"
mimeattach="e:\inetpub\hostroot\aaintl.com\MailFiles\MyFile.txt">


However, the problem I'm now having, is when I try to replace "MyFile.txt"
with the name of the file from the form field #MyFile#, it's pulling the
ENTIRE entry in the form field...

In other words...if I choose "D:\MyDocs\Text Files\MyFile.txt" to upload to
the server - that entire path gets appended to the path in the mimeattach
statement in the CFMAIL tag:

mimeattach="e:\inetpub\hostroot\aaintl.com\MailFiles\D:\MyDocs\Text
Files\MyFile.txt"


So, somehow I've got to eliminate the path part that's coming from the form
and just get the file name by itself.



Further ideas?



Les Mizzell
***********
Who needs Intel?
Athlon Inside!!!

> -----Original Message-----
> From: David E. Crawford [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 06, 2000 11:31 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Uploading and Emailing a File
>
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_00E6_01C01817.6D46BA00
> Content-Type: text/plain;
>       charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
>
> Uploading and Emailing a FileYou need to get the file name from the FILE
> object.  Use File.ServerFile in the MAILPARAM.
>
> DC
>
>   -----Original Message-----
>   From: Les Mizzell [mailto:[EMAIL PROTECTED]]
>   Sent: Wednesday, September 06, 2000 15: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.
>
>
> ------=_NextPart_000_00E6_01C01817.6D46BA00
> Content-Type: text/html;
>       charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD><TITLE>Uploading and Emailing a File</TITLE>
> <META content=3D"text/html; charset=3Diso-8859-1" =
> http-equiv=3DContent-Type>
> <META content=3D"MSHTML 5.00.3018.900" name=3DGENERATOR></HEAD>
> <BODY>
> <DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
> class=3D251023015-06092000>You=20
> need to get the file name from the FILE object.&nbsp; Use =
> File.ServerFile in the=20
> MAILPARAM.</SPAN></FONT></DIV>
> <DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
> class=3D251023015-06092000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
> class=3D251023015-06092000>DC</SPAN></FONT></DIV>
> <DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
> class=3D251023015-06092000></SPAN></FONT>&nbsp;</DIV>
> <BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
>   <DIV align=3Dleft class=3DOutlookMessageHeader dir=3Dltr><FONT =
> face=3DTahoma=20
>   size=3D2>-----Original Message-----<BR><B>From:</B> Les Mizzell=20
>   [mailto:[EMAIL PROTECTED]]<BR><B>Sent:</B> Wednesday, September =
> 06, 2000=20
>   15:19<BR><B>To:</B> [EMAIL PROTECTED]<BR><B>Subject:</B> =
> Uploading and=20
>   Emailing a File<BR><BR></DIV></FONT><BR>
>   <P><FONT size=3D2>Travel Insurance Company wishes their clients to be =
> able to=20
>   upload small</FONT> <BR><FONT size=3D2>text files to then be emailed =
> to the=20
>   Company when processing claims.&nbsp; File</FONT> <BR><FONT =
> size=3D2>is list of=20
>   names, beneficiaries, birth dates....blah, blah....</FONT> </P>
>   <P><FONT size=3D2>So, following action is working great.&nbsp; File is =
> saved to=20
>   server properly</FONT> <BR><FONT size=3D2>from the client input =
> form:</FONT>=20
> </P>
>   <P><FONT size=3D2>&lt;CFFILE ACTION=3D"UPLOAD"</FONT>=20
>   <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT=20
>   =
> size=3D2>DESTINATION=3D"e:\inetpub\hostroot\myclient.com\MailFiles\"</FON=
> T>=20
>   <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT=20
>   size=3D2>NAMECONFLICT=3D"Overwrite"</FONT>=20
>   <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT=20
>   size=3D2>FILEFIELD=3D"ClientFile"&gt;</FONT> </P><BR>
>   <P><FONT size=3D2>Same processing page needs to send email to the =
> Insurance=20
>   Company, which is</FONT> <BR><FONT size=3D2>working properly as =
> well.&nbsp;=20
>   However, I can't seem to get the syntax correct</FONT> <BR><FONT =
> size=3D2>for it=20
>   to include the above file as an attachment to the email....</FONT> =
> </P>
>   <P><FONT size=3D2>&lt;CFMAILPARAM=20
>   =
> FILE=3D"e:\inetpub\hostroot\myclient.com\MailFiles\#ClientFile#"&gt;</FON=
> T> </P>
>   <P><FONT size=3D2>I'm probably and idiot!&nbsp; Advise please??</FONT> =
> </P>
>   <P><FONT size=3D2>Thanks</FONT> </P>
>   <P><FONT size=3D2>Les Mizzell</FONT> <BR><FONT =
> size=3D2>***********</FONT>=20
>   <BR><FONT size=3D2>Who needs Intel?</FONT> <BR><FONT size=3D2>Athlon=20
>   Inside!!!</FONT> </P>
>   <P><FONT=20
>   =
> size=3D2>----------------------------------------------------------------=
> --------------</FONT>=20
>   <BR><FONT size=3D2>Archives: <A=20
>   href=3D"http://www.mail-archive.com/[email protected]/"=20
>   =
> target=3D_blank>http://www.mail-archive.com/[email protected]/</A=
> ></FONT>=20
>   <BR><FONT size=3D2>To Unsubscribe visit <A=20
>   =
> href=3D"http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&amp
> ;body=3D=
> lists/cf_talk"=20
>   =
> target=3D_blank>http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&am=
> p;body=3Dlists/cf_talk</A>=20
>   or send a message to [EMAIL PROTECTED] with =
> 'unsubscribe' in=20
>   the body.</FONT></P></BLOCKQUOTE></BODY></HTML>
>
> ------=_NextPart_000_00E6_01C01817.6D46BA00--
>
> ------------------------------------------------------------------
> ------------
> 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.

Reply via email to