troubleshooting Question

CDONTS - "Unspecified error" when trying to attach File

Avatar of HangTenDesign
HangTenDesign asked on
ASP
11 Comments1 Solution332 ViewsLast Modified:
I am getting an unspecified error ....
------------------------------------------
error '80004005'
Unspecified error

/mortgagebanking/admin/rates_savepdf.asp, line 48
------------------------------------------

...while trying to attach a file. The email was sent fine without the Attachment. Here is my code below. I removed private information for this example.


------------------------------------------

Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.BodyFormat = 0
objMail.MailFormat = 0
 
 objMail.To = "xxxxx@xxxxx.com"
 objMail.From = "xxxxx@xxxxx.com"
 objMail.AttachFile "D:\xxxxx.pdf", "xxxxx.pdf"
 objMail.Subject= "xxxxx"
 objMail.Body = strbody
 objMail.Send
 
------------------------------------------

Thanks for your help!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 11 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros