|
-
Sep 2nd, 2005, 05:28 PM
#1
Thread Starter
Junior Member
Sending an email via vb
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|