I wrote a vb script to back up a few files on my pc.

I want it to send me and email when it is done telling me that the files have been backed up.

I an using the following code and I am getting errors

Dim objMessage
Set objMessage = CreateObject("CDO.Message")
If Err.number <> 0 then
WScript.Quit Err.Number
End If
objMessage.Subject = "Test Message"
objMessage.Sender = "[email protected]"
objMessage.To = "[email protected]"
objMessage.TextBody = "This is some sample message text."
objMessage.Send

Error: The "SendUsing" configuration value is invalid.

What do I have to do to fix it. It works fine when I do this via asp on a web page but when I try to do the same thing via a script file, I get that error.

Is there something else I have to add?

Thanks,
DL