Send Email Using Post-Script
This topic describes how to send an email using the post-script functionality and TaskScheduleManager tool.
For more information about pre-run and post-run script feature, see Pre/Post Script.
To send email using post-script,
- Open the Process file for which you want to send an email after the file is run, select Edit > Post Script. The Pre-Run/Post-Run Process Settings window appears.
- On the Post-Run iScript tab, select Post-Run Process and select Internal Script from the dropdown list.
- Select Vb Script or Java Script or VB.Net Script from the dropdown list.
- Write down the required script corresponding to the selected option from the dropdown menu.
- Alternatively, you can insert the sample
Pre-Run-Sample01.vbavailable in theC:\Users\administrator\Documents\Innowera\Samples\Scriptspath and perform the following steps:- For
objProcess.FileName, enter the path whereTaskScheduleManager.exefile is located. Default path of required file isC:\Program Files (x86)\Innowera\Process Runner\TaskScheduleManager.exe. - For
objProcess.Arguments, enter the Process arguments as follows:-
ActionType: Indicates the type of operation that must be performed. For example,
ActionType=SendEmail -
Filepath: Indicates the path of
.xmlfile that contains the email information. Default path isC:\Program Files (x86)\Innowera\ProcessRunner\Samples\Scripts\SendEmailData.xml -
KeepFile: Indicates whether to keep file or delete after sending mail. For example,
KeepFile=truekeeps the file.
-
ActionType: Indicates the type of operation that must be performed. For example,
- For
- Select OK. The mail is sent as configured in the script after the Process file is run.
You can also refer to the Pre/Post Script and Custom Process.