Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Missing CDO???

Status
Not open for further replies.

dukkse

Technical User
Oct 15, 2003
42
US
Hey!!

I have a script that reads all lines from a textfile into a mail and sends it. This worked fine as a script on my Win2000 Server, but then we upgraded, and now it doesn't work. Is this something with CDO not installed, and in that case, can you install it?? Below are my mailcode:

set oMessage = CreateObject("CDONTS.NewMail")
oMessage.Subject = "Uptime"
oMessage.From = "Uptime_Batch"
oMessage.To = "mail@host.com"
oMessage.Body = TSrvinfo & vbCrlf + vbCrlf & vbCrlf & srvinfo
oMessage.Send
set oMessage=nothing

Thanks
 
dukkse,

You stated you upgraded.

To what? Server 2003?

I can't say for sure, but I know with Win2k and WinXP MS moved away from CDONTS (although it was included with Win2K) to CDOSYS.

Did you check your services to see if SMTP is running?

Did you do a search for cdonts.dll or cdosys.dll?

Not sure this is alot of help, but best I have at this time.

HTH
DougCranston
 
Hey!!

Thanks, CDOSYS.dll were there, but not CDONTS.dll, can I just copy it in??

Tried to change to CDOSYS.Newmail but didn't help

Any more ideas??

Thanks

Daniel
 
Hey guys!!

Great, I got it working through this:

copy cdonts.dll to c:\windows\system32
command prompt: regsvr32 cdonts.dll
Worked fine..

Tried with:
objMail = Server.Create(CDO.Newmail)
objMail.To = mailhost.com
objMAil.Send
and so on..
But didn't work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top