We had a problem with the 'mailmany' RAD routine, so we wrote our own using scripts. The attached script series is called when the maximum current.req.seq. value increases when saving a Change record. In our system, the current.pending.groups can either be groups or individuals. It works by reading each group in turn. If it is a group then it reads the email address of each member from the operator file, gets a sequencial number for an output event and then builds an event that SCEmail can process. If the group does not exist then it assumes an individual and then reads the operator file directly.
The outgoing message depends on the value of current.req.seq
There are probably many ways to go about this but I hope these scripts illustrate some basics of messing around with RTE.
Andy


Reply With Quote
Bookmarks