Forum Moderators: open

Message Too Old, No Replies

ASP CDONTS AttachFile

         

John_Zhou

2:19 pm on Jan 23, 2003 (gmt 0)



I am making a request form which has file attachment function. My problem is how to code the path to file:

mail.AttachFile Server.MapPath ("?")

Obviously,? comes from request form. Tell me how to do it please. Thanks.

BlobFisk

2:34 pm on Jan 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, John_Zhou! Check out Marcia's excellent WebmasterWorld Welcome and Guide to the Basics [webmasterworld.com].

This can be done in 2 steps:

  1. Save the attachment from the form to a folder on the server,
  2. Create the CDONTS email and attach the file from the same folder.

Hope this helps!