|
 |
asp_web_howto thread: Browse for a file to send as an email attachment
Message #1 by jim.mccann@e... on Sun, 10 Feb 2002 21:24:21
|
|
I hope someone can help.
I would like a facility for a user to browse his hard disk for a file from
ithin a form and then send this selected file as an email attachment to a
predefined recipient email address.
Can anyone heklp?
Message #2 by "Ken Schaefer" <ken@a...> on Mon, 11 Feb 2002 14:09:48 +1100
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: <jim.mccann@e...>
Subject: [asp_web_howto] Browse for a file to send as an email attachment
: I hope someone can help.
:
: I would like a facility for a user to browse his hard disk for a file from
: ithin a form and then send this selected file as an email attachment to a
: predefined recipient email address.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Use <input type="file"> to allow a user to browse for a file.
They submit the form to the server. Use a component (eg ASPUpload) to grab
the file from the Request collections. Alternatively, you can roll your own
using plain ASP code. Save the file to the server's hard disk temporarily.
http://www.google.com/search?hl=en&q=Upload+a+file+using+ASP
contains a wealth of links that will tell you how to do this.
Use an SMTP component (like CDONTS) to create/send a new email - and attach
the file that you just saved.
http://www.google.com/search?hl=en&q=Send+an+email+using+CDONTS+and+ASP
contains lots of links to do this second part.
Cheers
Ken
|
|
 |