Highlighted
Absent Member.
Absent Member.
3304 views

Many recipients via Tokens ? Need help !

Hi there,

I am using Groupwise Tokens to create automated emails from an ERP-System.
The only thingh i can't find is how to send one mail to many recipients.

I use the TextSetTo-Token.

If I call it in a loop only the last adress is use ... they overwrite each
other

If I use a ";" as delimiter one the first adress is used, eventhough they
are all listed

If I use a "," as delimiter groupwise is quite confuse, I guess it thinks
this is a name (like "Doe, John")

Is there a other token to use ?
Can anybody help ?
I think this should be quite simple ....

Thanks in advance 🙂

Best regards form germany,
Felix


Labels (1)
0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

Re: Many recipients via Tokens ? Need help !

Hello, Felix.

The following works fine for me:

-- Start Code

Dim objGWApp
Dim address(2) As String
Dim res As String
Dim i As Long

address(0) = "test1@nmasters.com"
address(1) = "test2@nmasters.com"
address(2) = "test3@nmasters.com"

Set objGWApp = CreateObject("GroupWiseCommander")

objGWApp.execute "NewMail()", res

For i = 0 To 2
objGWApp.execute "TextSetTo(" & Chr(34) & address(i) & Chr(34) &
";TRUE)", res
Next

--- End Code

Regards,

Shane

In article <GkHQc.4284$8%5.862@prv-forum2.provo.novell.com>,
bopp@gsoag.com says...
> Hi there,
>
> I am using Groupwise Tokens to create automated emails from an ERP-System.
> The only thingh i can't find is how to send one mail to many recipients.
>
> I use the TextSetTo-Token.
>
> If I call it in a loop only the last adress is use ... they overwrite each
> other
>
> If I use a ";" as delimiter one the first adress is used, eventhough they
> are all listed
>
> If I use a "," as delimiter groupwise is quite confuse, I guess it thinks
> this is a name (like "Doe, John")
>
> Is there a other token to use ?
> Can anybody help ?
> I think this should be quite simple ....
>
> Thanks in advance 🙂
>
> Best regards form germany,
> Felix
>
>
>

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Many recipients via Tokens ? Need help !

You need to add the append as true option

"SetTextTo("somebody@novell.com",1)"

Loop through your list of people and use this each time. The default was false and it replaced the list each time. You end up with only the last person that way.

felixbopp;1761081 wrote:
Hi there,

I am using Groupwise Tokens to create automated emails from an ERP-System.
The only thingh i can't find is how to send one mail to many recipients.

I use the TextSetTo-Token.

If I call it in a loop only the last adress is use ... they overwrite each
other

If I use a ";" as delimiter one the first adress is used, eventhough they
are all listed

If I use a "," as delimiter groupwise is quite confuse, I guess it thinks
this is a name (like "Doe, John")

Is there a other token to use ?
Can anybody help ?
I think this should be quite simple ....

Thanks in advance 🙂

Best regards form germany,
Felix
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.