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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDO and VBS

Status
Not open for further replies.

ACraib

MIS
Sep 7, 2001
579
GB
Hi

I've created a very simple VBS program to send an e-mail to tests accounts I keep on my servers. This script works fine when run from my Exchange server but comes up with an error message when run from my W2K Pro machine.

The error : "The "SendUsing" configuration value is invalid."

Any ideas?

Thanks

Andrew
 
If you don't have virtual SMTP server running on your workstation. (Comes with IIS) Then you need to Set three Things

cdosendusingport = 2
smtpserverport = 25 (default)
smtpserver = servername (string)

This will let you send to the exchange box over the network.
 
Thanks for that. I'm still having problems though. Can you have a look at me script and tell me what I've got wrong?

set msg=createobject("CDO.message")
msg.TO = "test.account@mycompany.com"
msg.FROM = "bouncer@mycompany.com"
msg.SUBJECT = "bouncer test"
msg.TEXTBODY = "test"
cdosendusingport = 2
smtpserverport = 25
smtpserver = london04
msg.send

Thanks

Andrew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top