Discuss our other products here. Get help with installation and running, notify us of bugs, request new features and enhancements.
Moderators: DataMystic Support, Moderators
- Site Admin
- Posts: 2261
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
Here is a sample vbscript to sent an email - save it as 'send-email.vbs' and set FileWatcher's command field to point to this file.
Code: Select all
'Set a reference to the arguments
Set objArgs = Wscript.Arguments
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "email@example.com"
objEmail.To = "firstname.lastname@example.org"
objEmail.Subject = "FileWatcher file attached"
objEmail.Textbody = "Please process it ASAP"
for i = 1 to objArgs.count
objEmail.AddAttachment( objArgs(i) )
set objEmail = Nothing
Set objArgs = Nothing
- (478 Bytes) Downloaded 496 times
Who is online
Users browsing this forum: No registered users and 1 guest