Its been almost a year since i did mine, but i was thinking that what they had in there was not sufficient to actually work.
Regardless, due to other requirements I ripped it out totally and instead:
1 - It checks for what group its assigned to ( procedurally we only allow one assignment so i only have to do this once, if that wasn't the case then it would have to loop thru #2 and #3 for all assignees )
2 - Filters out 'bad groups' ( like 'all users' ) and sends me a mail directly so i can yell at the person for not following procedures. ( later we added a filter to the choices when assigning based on what group you are in, so that you couldn't assign to a 'bad' group in the first place. A much better solution ). With us, if someone assigned to the all users group by mistake, that would be 50,000 emails ( and as we grow back to the level we had in v6, several hundred thousand )
3 - If a valid group, it pulls out the members as an array and sends mail to all of them.
The plan was to eventually change step #3 to send to an exchange distribution list instead of individual members so we would again have more granular control over notices, but we didn't get that far before we killed the project and tossed ServiceDesk to the curb.