System Info:
- Windows Vista Home Premium
- IIS 7.0 (running on local machine for testing purposes)
- Language: ASP (VBScript)
Goal:
- Send emails locally with my computer using CDONTS (already accomplished this before on my old Win XP Pro computer)
Steps already taken:
- Saved CDONTS DLLs in C:\bin
- Registered CDONTS DLLs with regsvr32 succesfully
- Added C:\bin in the PATH (through My Computer -> Properties -> Advanced -> Environment Variables)
- Checked that SMTP icon appears when selectin my Default Web Site on IIS
- Checked that SMTP, port 25 is not blocked by Firewall
Code: (works perfectly on other systems)
Set Mymail = CreateObject("CDONTS.NewMa
il")
Mymail .From = "blah@blah.com"
Mymail .To = "blah@blah.com"
Mymail .Subject = "blah"
Mymail .Body = "blah"
Mymail .Send <---- line where error occurs
Set Mymail = Nothing
Problem:
- Every time I try to send email I get this error: "error '80070003' "
How do I solve this? Any help is greatly appreciated :-)
Start Free Trial