Is it possible to add some code to pass in another type of parameter (in addition to "-t", say "-i") to represent an index, and then pass that index value somehow to the ****_iwmailheader.tpl or ****_iwmailbody.tpl files? What I'm trying to do is customize the .tpl files so they can build custom information into the email in real-time. I would have a config file with all my various email messages, subjects, recipients, etc. Then I would use that index value to grab the appropriate info and plug it in programmatically at run-time. This would alleviate me building a bunch of separate header and body .tpl files every time I need a new type of email message. If I can't pass that index into the .tpl files from the main script, is there another way to do this?
The limitation of the way the template based email has been set up is that it only allows me to send the script task information. If I want to send emails to people other than those listed as the owners of tasks, I have to hardcode or make a new .tpl file. I would like to keep all my custom info in a config file, then grab it as needed via an index. I just don't know how to get the index to the .tpl files.
Dave SmithSr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com