Email attachment in asp

Greeting,

I have an asp which let users to send email request. Now I want the users to be able to upload up to 3 attachment. Can some one pls provide sample codes?

Thanks.

M
mrongAsked:
Who is Participating?
 
pateljituConnect With a Mentor Commented:
0
 
pateljituCommented:
Please see this article which has various examples with using CDO for sending emails:

http://www.w3schools.com/asp/asp_send_email.asp
0
 
mrongAuthor Commented:
pateljitu,

Thank you for your reply. I need actual sample includes 'Browse' button and etc.

-M
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Below assumes you have aspupload component.  Classic asp by on it's own can not upload and you will need some type of component to be  added to your server to make it work.
http://www.aspupload.com/manual_simple.html
<%
Set Upload = Server.CreateObject("Persits.Upload")
Count = Upload.Save("c:\upload")
Response.Write Count & " file(s) uploaded to c:\upload"
%>

<HTML>
<BODY BGCOLOR="#FFFFFF">
   <FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="UploadScript1.asp">
      <INPUT TYPE="FILE" SIZE="40" NAME="FILE1"><BR>
      <INPUT TYPE="FILE" SIZE="40" NAME="FILE2"><BR>
      <INPUT TYPE="FILE" SIZE="40" NAME="FILE3"><BR>
   <INPUT TYPE=SUBMIT VALUE="Upload!">
   </FORM>
</BODY>
</HTML>
0
 
mrongAuthor Commented:
Also this article are missing codes....the attachements have to be uploaded to the server before attach to email. thanks.
0
 
mrongAuthor Commented:
I found a script file to upload the attachment to web server without any aspupload component. Now I'd like to know how to upload multiple attachements to the email from C:/upload

Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.