declare a variable ie. FileNameStuff

FileNameStuff = "c:\testasp\" & FileNumberStuff & ".txt"

then do it like this.... 

objMail.attachFile FileNameStuff, ""

that should work... 
:)
s
-----Original Message-----
From: Hal [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2002 04:21
To: [EMAIL PROTECTED]
Subject: [wdvltalk] CDO Mail


OK.  People in the office are giving me hints that I've spent too long on
this one already.  Maybe its the stuff flying out of the door, or possibly
just the shrieks coming from my office.

I'm attempting to do something that seems like it should be simple, and
probably is, but I'm missing it.  I need to send an e-mail using CDonts with
an attachment.  When I use the following code:

objMail.attachFile"c:\testasp\4321.txt", ""

all is well.  What I need to do is make the '4321' a variable.  No matter
how I code it, the page blows up.  Can anyone shed some light?

Thanks,

Hal


____ * The WDVL Discussion List from WDVL.COM * ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to %%email.unsub%%

___________________________________________________________________________________________________


The views expressed in this email are, unless otherwise stated, those of the author 
and not those
of the FirstRand Banking Group or its management.  The information in this e-mail is 
confidential
and is intended solely for the addressee. Access to this e-mail by anyone else is 
unauthorised. 
If you are not the intended recipient, any disclosure, copying, distribution or any 
action taken or 
omitted in reliance on this, is prohibited and may be unlawful.
Whilst all reasonable steps are taken to ensure the accuracy and integrity of 
information and data 
transmitted electronically and to preserve the confidentiality thereof, no liability 
or 
responsibility whatsoever is accepted if information or data is, for whatever reason, 
corrupted 
or does not reach its intended destination.

                               ________________________________

____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to