Send E-Mail in HMS-Script.

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Dubolomov
Posts: 214
Joined: Thu Jun 01, 2006 10:27 am
Location: Russia

Send E-Mail in HMS-Script.

Post by Dubolomov »

Hi.
Is it possible to send E-Mail using HMS-script?
I have a shceduled task which create some reports every night. And i would like to send email after operation complete.
Thank you.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

There are several ways to send e-mail after reports generating operation is completed. At first, I want to point out at the "Execute action profile when complete" option, that is located on "Options > Reports" tab.
Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... tm#Reports
==================
Execute action profile when complete
With this option enabled HostMonitor will launch the specified alert profile after reports were generated (for example you may use this option to send reports by e-mail).
==================

On the other hand, if you are using build-in Scheduler (Options > Scheduler), you may use action profile with two actions - first should be "Execute HMS script" and second "Send Email". HostMonitor launches actions from action profie in createion order, so in such case "Send Email" action will be launched after "Execute HMS script" completes.

Also you may use "SendMail" utility, that is supplied with IP-Tools package.
http://www.ks-soft.net/ip-tools.eng/mfr ... ndmail.htm
"SendMail" is command line utility, so you may use "StartProgram" or "ExecuteProgram" HMS scripting commands to launch it from HMS script. http://www.ks-soft.net/hostmon.eng/mfra ... #actScript

Regards,
Max
Post Reply