Skip to main content

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,

  1. 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.
  2. On the Post-Run iScript tab, select Post-Run Process and select Internal Script from the dropdown list.
  3. Select Vb Script or Java Script or VB.Net Script from the dropdown list.
  4. Write down the required script corresponding to the selected option from the dropdown menu.
  5. Alternatively, you can insert the sample Pre-Run-Sample01.vb available in the C:\Users\administrator\Documents\Innowera\Samples\Scripts path and perform the following steps:

    1. For objProcess.FileName, enter the path where TaskScheduleManager.exe file is located. Default path of required file is C:\Program Files (x86)\Innowera\Process Runner\TaskScheduleManager.exe.
    2. 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 .xml file that contains the email information. Default path is C:\Program Files (x86)\Innowera\ProcessRunner\Samples\Scripts\SendEmailData.xml
      • KeepFile: Indicates whether to keep file or delete after sending mail. For example, KeepFile=true keeps the file.
  6. 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.

Was this article helpful?

We're sorry to hear that.