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.
Send E-Mail in HMS-Script.
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
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
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