[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

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
0
mrong
Asked:
mrong
  • 3
  • 2
1 Solution
 
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
 
Scott Fell, EE MVEDeveloperCommented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
mrongAuthor Commented:
Also this article are missing codes....the attachements have to be uploaded to the server before attach to email. thanks.
0
 
pateljituCommented:
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

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now