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: 2174
- 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 = "firstname.lastname@example.org"
objEmail.To = "email@example.com"
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 462 times
Return to “FileWatcher, DirDate and other Support”
Who is online
Users browsing this forum: No registered users and 1 guest