Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Attach Document to a form


Message #1 by "Jeff McFarland" <jeff@s...> on Wed, 9 Oct 2002 20:18:23
Hello Everyone,

I am creating a form and I need to include the functionality to allow the 
user to attach a document to the form.  Then when the user submits the 
form... the attachment is included in the email.  Any help or pointers 
would be appreciated!

Thanks,
Message #2 by "Steven Reule" <Steven.Reule@d...> on Wed, 09 Oct 2002 12:12:25 -0700
Check out the Dundas Mailer and Dundas Upload components at
www.dundas.com

This will let the user select a file from their PC and send it as an
attachment to an e-mail.

Steve

>>> jeff@s... 10/09/02 12:10 PM >>>
Hello Everyone,

I am creating a form and I need to include the functionality to allow
the 
user to attach a document to the form.  Then when the user submits the 
form... the attachment is included in the email.  Any help or pointers 
would be appreciated!

Thanks,

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20

*******************************************************************
Confidentiality Notice: This e-mail message, including any
attachments, is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender
by reply e-mail and destroy all copies of the original message.
*******************************************************************

Message #3 by "Scott Heath" <scott@s...> on Wed, 9 Oct 2002 14:16:21 -0500
Jeff,
ASPemail has a option to add an attachment:
Mail.AddAttachment "c:\images\cakes.gif"

What I would do is have a button that opens a new window that lets the
user browse for a file, upload it, once the file is on the local server
pass the variable to ASPemail like this:

Mail.Addattachment "f:\path_to_file\" & filename


ASPemail is a free ASP component available at www.aspemail.com (it has
code samples too)

Scott
 
Website      | http://www.scottspad.com
E-mail       | scott@s...
Alpha Pager  | www.scottspad.com/phone.asp
--------------------------------------------
There are 10 types of people in the world,
those that can read binary and those that can not.
-----Original Message-----
From: Jeff McFarland [mailto:jeff@s...] 
Sent: Wednesday, October 09, 2002 8:18 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Attach Document to a form

Hello Everyone,

I am creating a form and I need to include the functionality to allow
the 
user to attach a document to the form.  Then when the user submits the 
form... the attachment is included in the email.  Any help or pointers 
would be appreciated!

Thanks,

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20


Message #4 by "Jeff McFarland" <jeff@s...> on Wed, 9 Oct 2002 20:41:17
Thanks Scott,

But wouldn't that allow someone to upload a document with a virus?

Thanks again for the help!

Jeff
Message #5 by "Scott Heath" <scott@s...> on Wed, 9 Oct 2002 14:39:03 -0500
OH I forgot...make the script delete the file after its done sending :)
If the file isn't run (turn off exec rights on the temp dir) viruses
shouldn't be a problem on the server...the person you have to worry
about is the recipient...but what's stopping someone from attaching a
virus laden file and e-mailing it to someone anyway?


Scott
 
Website      | http://www.scottspad.com
E-mail       | scott@s...
Alpha Pager  | www.scottspad.com/phone.asp
--------------------------------------------
There are 10 types of people in the world,
those that can read binary and those that can not.

-----Original Message-----
From: Jeff McFarland [mailto:jeff@s...] 
Sent: Wednesday, October 09, 2002 8:41 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Attach Document to a form

Thanks Scott,

But wouldn't that allow someone to upload a document with a virus?

Thanks again for the help!

Jeff

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20


Message #6 by "Jeff McFarland" <jeff@s...> on Wed, 9 Oct 2002 20:54:07
Good Point...

Thx again,


  Return to Index