This is a multi-part message in MIME format.
------=_NextPart_000_005C_01C195C5.57C7EAA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
While uploading and saving file on the web server, control is in your
hands and hence you can very well alter/create file name by your own.
Which component do u use for uploading a file?? Is it SAFileUp? If so,
there is a method - upl.form("fsdf").SaveAs "<<filename>>".
HTH
--------------------------------
AAKASH PARMAR (Man should not even think impossibles....)
Project Leader
Universal Software
Email : parmarkanaiya@c..., parmarkanaiya@y...
Phone: ++ 91 79 5627740 (R), 630 6028, 630 2998 (O)
----- Original Message -----
From: <philip.moh@a...>
To: ASPX_Professional <aspx_professional@p...>
Sent: Friday, January 04, 2002 2:31 PM
Subject: [aspx_professional] Re: attachment
> in that case, how would I know the file name being uploaded to my web
server?
>
>
> -----Original Message-----
> From: AAKASH [SMTP:parmarkanaiya@y...]
> Sent: Friday, January 04, 2002 10:56 AM
> To: ASPX_Professional
> Subject: [aspx_professional] Re: attachment
>
> You can upload a file to the pre-defined folder and then you can use
server.mappath(<<filename>>) to target the file and hence you need not
to provide hardcoded path.
>
> HTH
> Aakash
>
>
> ----- Original Message -----
> From: < philip.moh@a... <mailto:philip.moh@a...>>
> To: ASPX_Professional < aspx_professional@p...
<mailto:aspx_professional@p...>>
> Sent: Thursday, January 03, 2002 8:55 AM
> Subject: [aspx_professional] Re: attachment
>
> > Hi Aakash,
> >
> > Thanks for the mail but I still don't understand. Here is my code:
> >
> > This is my userInput.html form and I have three fields on it:
> >
> > Name
> > Password
> > Email
> >
> > Once they click on the Submit button, information will be passed to
second form - SendMail.ASP.
> > The SendMail.ASP will send the email with the information from
userInput.html to me by using the CDONTS component. I have no problem to
do this but now, I want the user able to attach the file in
userInput.html and send it to me via the SendMail.ASP. How??
> >
> > How can I pass the attachment path from userInput.html to
SendMail.ASP??
> >
> > I have used the following command in SendMail.ASP and able to attach
the file and send to me but this is hard-coded already...
> >
> > ---
> > cMailObj.AttachFile ("c:\a.log")
> > ---
> >
> > Please help
> > Thanks
> > Philip
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: AAKASH [ SMTP:parmarkanaiya@y...
<mailto:SMTP:parmarkanaiya@y...>]
> > Sent: Thursday, January 03, 2002 10:34 AM
> > To: ASPX_Professional
> > Subject: [aspx_professional] Re: attachment
> >
> > Hi Phill,
> >
> > I think you want to do this in ASP, is it right? If yes, then
following could be of help to you.
> >
> > Well, to attach a file with the email, there is one method named
"AttachFile" or "Attach" (sorry i don't remember exact name at this
moment) which requires an argument of the file location. File should be
lying on the web server from where the asp script is getting fired. So,
may be this you can write
> >
> > objMail.Attach "d:\users\send.zip"
> >
> > or let's say, you want to give the facility to the user to attach
their own file. Then you have to first of all, have them uploaded on the
web server adn from there, you can apply above logic. Say, you have
saved files from the user in d:\users\uploadedfiles folder. Then you can
write following...
> >
> > objMail.Attach "d:\users\uploadedfiles\<<filename>>"
> >
> > I think this would help you.
> >
> > Still should u have any question, do not hesitate to write me.
> >
> > --------------------------------
> > AAKASH PARMAR (Man should not even think impossibles....)
> > Project Leader
> > Universal Software
> > Email : parmarkanaiya@c...
<mailto:parmarkanaiya@c...> <
<mailto:parmarkanaiya@c...>>, parmarkanaiya@y...
<mailto:parmarkanaiya@y...> < <mailto:parmarkanaiya@y...>>
> > Phone: ++ 91 79 5627740 (R), 630 6028, 630 2998 (O)
> >
> > ----- Original Message -----
> > From: < philip.moh@a... <mailto:philip.moh@a...> <
<mailto:philip.moh@a...>>>
> > To: ASPX_Professional < aspx_professional@p...
<mailto:aspx_professional@p...> <
<mailto:aspx_professional@p...>>>
> > Sent: Wednesday, January 02, 2002 11:25 AM
> > Subject: [aspx_professional] attachment
> >
> > > Hi,
> > >
> > > I am using CDONT to send email to my user and now I want to
include the attachment, how to do this? FYI, I have one form -
USERINPUT.HTML, which for user to enter the information like name, email
address and etc. Once the click on the Submit button, system will call
the SENDMAIL.ASP and information will be sent to me. How can I pass the
path/attachment in form USERINPUT.HTML to SENDMAIL.ASP??? Please help.
> > >
> > > Thanks
> > > Phil
> > >
> > >
> > >
> > >
> > > ---
> > > Change your mail options at < <http://p2p.wrox.com/manager.asp>>
or
$subst('Email.Unsub')
<mailto:$subst('Email.Unsub')> <
mailto:$subst('Email.Unsub')
<mailto:$subst('Email.Unsub')>>. ---
> > Change your mail options at <http://p2p.wrox.com/manager.asp> or
$subst('Email.Unsub')
<mailto:$subst('Email.Unsub')>.
> >
> >
> > ---
> > Change your mail options at <http://p2p.wrox.com/manager.asp> or
$subst('Email.Unsub')
<mailto:$subst('Email.Unsub')>. ---
$subst('Email.Unsub').
>
>
$subst('Email.Unsub').
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com