All of email notification in RT is forwarding to one user!

hello everyone

I created a scrip for one of my queues to send an auto reply to group of users named “testgroup”.(they are not watchers) when a ticket is created in that queue. the problem is all of emails that is created in Request tracker is forwarding to testgroup members! what is happenning?

scrip includes these information:

Description: On Create Notify testgroup
Condition: On Create
Action: Notify Other Recipients
Template: Email test group

the template is like below:

To: {
my $group = RT::Group->new( $RT::SystemUser );
$group->LoadUserDefinedGroup(“testgroup”);
$group->MemberEmailAddressesAsString;
}

RT-Attach-Message: yes

A new ticket was created in the {$Ticket->QueueObj->Name} queue.

  Subject: {$Transaction->Subject || $Ticket->Subject || "(No subject given)"}

Requestors: {$Ticket->RequestorAddresses}

{$Ticket->Transactions->First->Content()}

please help me about this!

Did you make the scrip global by mistake?

you are right. thank u