T2K won't parse a single variable with multiple rows on its own, so @@local$attachments as a single entry in the attachments section of the mail action won't work.

However, you can use the format @@local$attachments[n,1] in each line of the attachments section (where n is from 1 to as many attachments as you think you'll ever send).

If, for example, the @@local$attachments only has two rows, T2K will log an error about not finding attachments 3, 4, 5, 6... but the mail will go out with the defined attachments.

J.


On 31/07/2004, at 2:39 AM, Witango wrote:

I will try this.

Thanks so much Roland.

- Vic

-----Original Message-----
From: Roland Dumas [mailto:[EMAIL PROTECTED]
Sent: July 30, 2004 12:30 PM
To: [EMAIL PROTECTED]
Subject: Re: Witango-Talk: Mail Attachments

attaching an arbitrary number is a little more difficult.

Maybe creating a routine that actually writes a taf and then calls it.
You'd write the XML and the <@rows Array=xxx> writes the parameterItem
list. Then the next step calls this taf. a bit of a kludge, but you'd
end up with the ability to have a variable number of attachments.

<!--Program actions-->
<Actions>
<MailAction ID="Mail" Sig="mail">
<From>[EMAIL PROTECTED]</From>
<To>[EMAIL PROTECTED]</To>
<Subject>subject line</Subject>
<Body />
<ContentType>text/plain</ContentType>
<CharacterSet>iso-8859-1</CharacterSet>
<Wrap>72</Wrap>
<ParameterList>
<ParameterItem>file1.txt</ParameterItem>
<ParameterItem>file2.txt</ParameterItem>
</ParameterList>
</MailAction>
</Actions>

<!--Data sources-->
<DataSources />

<!--Output blocks-->
<Outputs />





On Jul 30, 2004, at 9:09 AM, Witango wrote:

So would W5 let me somehow loop through an array 'n' number of times
and
attach 'n' number of files within a single mail action? If yes, I will
upgrade.
<x-tad-bigger>
</x-tad-bigger>

Reply via email to