I'm trying to send an email from a stylesheet to multiple addresses, but
I can't figure out what the syntax should be.
This is doing by stylesheet and not by XSLT because of other code that
related to it, and was at time of implementation not possible with XSLT.


To one email address it is working fine:
xmlns:SendMail="http://www.novell.com/nxsl/java/com.novell.nds.dirxml.util.mail.SendMail"

<es:script>
function makeTo(address)
{
var EmailAddress =
Packages.com.novell.nds.dirxml.util.mail.SendMail. EmailAddress;
var to = java.lang.reflect.Array.newInstance(EmailAddress, 1);
to[0] = EmailAddress(address, EmailAddress.TO);
return to;
}

<xsl:variable name="to" select="es:makeTo('xxx@address')"/>
<xsl:message>Sending eMail:<xsl:value-of
select="SendMail:generateEMail(....)


I tried the following which is not working and gave me errors in the
logs:
<xsl:variable name="to"
select="es:makeTo('xxx@address','xxx1@address')"/>
and
<xsl:variable name="to"
select="es:makeTo('xxx@address'),('xxx1@address')"/>


Hopefully somebody can help.


--
gschouten32
------------------------------------------------------------------------
gschouten32's Profile: https://forums.netiq.com/member.php?userid=2546
View this thread: https://forums.netiq.com/showthread.php?t=51700