Advertisement
2002ASP Internet/ Browsers/ HTML #8052

Send Email from ASP with attachment using CDONTS without getting unspeciefied error 80004005

You can send an Email with attachment(s) from your ASP page using CDONTS. There is some code here on planet-source-code, but it does only work on the webserver itself, because the code does NOT first upload the attachment to the WebServer. This is neccesary, because the webserver the ASP is on cannot access your harddrive and pick up the file you want to send as attachment. If you don't, you get "Unspecified Error 80004005" Make sure you have IIS with CDONTS (standard under IIS5) installed and the SMTP virtual server is running on the webserver. The magnificent code to upload a file to a webserver is from Karl P. Grear and can be found on planet-source-code (Form Based File Upload Using Pure ASP).

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine