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: 2220
- 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 482 times
Who is online
Users browsing this forum: No registered users and 3 guests