One problem I'm having is when a grouptask follows an email and I want the email to go to all the members of the group. It's not an option to set up email aliases that correspond to all the various UNIX groups we have - that's just not feasible. So what I'm doing is in the <iw_perl> section of the ****_iwmailheader.tpl file, figuring out the members of the froup and building the <to> section of the template dynamically. The problem is, when I insert the perl variable that contains all the <iwov_emailmap> entried for the members of the group, it doesn't resolve these into <addr> tags as I would expect - it simply leaves the text of the variable in there without interpreting it.
For example, in the iw_perl section, I build a variable that contains the following string:
$to = '<iwov_emailmap user="wbox" />
<iwov_emailmap user="dsmith" />';
Then in the <to> tag that builds the headers, I insert this:
<iw_value name='$to' />
But this doesn't work - it appears to interpret the <iwov_emailmap> parts before the variable value is inserted into the header. Or something like that. What ends up in the log file for the header is this (I haven't figured out how to do indentation for tags in these posts - sorry):
<addr>{iw_value name=\"\"/}
@nike.com</addr>
<headers>
<!-- To the owner of the Review task -->
<to>
<iwov_emailmap user="wbox" />
<iwov_emailmap user="dsmit6" />
<!-- <addr><no user>
@nike.com</addr> -->
<!-- You can also hard-wire addresses. For example: -->
<!-- <addr>jsmith@nike.com</addr> -->
<!-- <addr>davidh.smith@nike.com</addr> -->
</to>
<!-- You can CC additional addresses. For example: -->
<cc>
<!-- <addr>jane.doe@nike.com</addr> -->
</cc>
<!-- From the owner of the email task -->
<from>
<!-- <addr fullname="DavidH Smith">DavidH.Smith@exchange.nike.com</addr> -->
<addr fullname="Interwoven">iwoven@camb2ep2.nike.com</addr>
</from>
<!-- Use the description of the Review task as the subject -->
<subject>
IW Workflow: 4176 Ready for IT QA
<!-- B2E Design Review -->
</subject>
</headers>
Is it not possible to do what I want to do?
Dave SmithSr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com