Okay this is so annoying me I am finally having to refrain from my pal google and move on to the mystical land of forums. :D
I am trying to get a asp-mailer setup that will send a specified attachment. I have tried both cdonts and cdosys methods ... both are giving me headaches.
And the best part is how incredibly helpful the error is: (Sarcasm Intended)
Error Type:
(0x80004005)
Unspecified error <-- They should change that error to ... "Good Luck!"
/knowledgetree/emailer-drivers.asp, line 90
I hilighted the above line in the code as well.
Here is the code I am working with:
Code:
<!-- These first two meta tag lines were added per a I suggestion I found on a forum somewhere.
I get the same error with or without them. And this is running on a WinXP Pro box BTW. -->
<%
Dim oAttach, DriverType, DriverVendor, DriverZip, email, html, oMail
DriverType = request.form("type")
DriverVendor = request.form("vendor")
DriverZip = request.form("attached")
email = request.form("email")
oAttach = "C:\tier1\knowledgetree\files\"
oAttach = oAttach & DriverType & "\"
oAttach = oAttach & DriverVendor & "\"
oAttach = oAttach & DriverZip
html = "Dear Subscriber:"
html = html & "<p>"
html = html & "<table>"
etc. etc...
Set oMail = Server.CreateObject("CDONTS.NewMail")
oMail.From = "[email protected]"
oMail.To = email
oMail.Subject = "Requested Device Drivers"
oMail.BodyFormat = 1
oMail.MailFormat = 0
oMail.Importance = 1
oMail.Body = html
oMail.Attachfile oAttach, "DevDrivers.zip", 1
%>
Your Request Has Been Processed.
<P>
<a href="http://tier1/knowledgetree/bottom.asp">
<b>Home</b></a>
Thanks for any help
- Matthew