Get all email adresses of a group!

hi!

looked for a simple way to get all email adresses
of a group. I wrote the 1line shell script attached to
the mail, but I’m curious how this look via the perl api.

regards!

sven

getGroupMembersEmail.sh (303 Bytes)

looked for a simple way to get all email adresses
of a group. I wrote the 1line shell script attached to
the mail, but I’m curious how this look via the perl api.

You can use the MemberEmailAddresses method
on RT::Group, which you can get using the LoadUserDefinedGroup
method (both defined in Group_Overlay.pm if you want to see
the code and docs)

-kevin