Link to home
Start Free TrialLog in
Avatar of quiTech
quiTechFlag for Canada

asked on

VBScript - CDO.Message does not work

Hello,

I am running on a Windows 2000 server, executing a VBScript file using command prompt CSCRIPT.

The VBScript tries to send an e-mail using CDO.Message:

set objMsg = CreateObject("CDO.Message")
objMsg.Subject = "test"
objMsg.From = "me@myaddress.com"
objMsg.To = "you@youraddress.com"
objMsg.TextBody = "test"
objMsg.Send

There are no errors when running the script, but, no message is sent or ever received.

SMPT Service is running, but there are no log files in winnt\system32\LogFiles\ for this service.
I don't have Exchange installed on (or accessible from) this server.

Any thoughts on where I should look to start tracking this down?  


ASKER CERTIFIED SOLUTION
Avatar of amit_g
amit_g
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of quiTech

ASKER

Thanks for all the information.  It turned out that the e-mail was in fact sent, but classified as "junk" on the receiving end.