I'm attempting to implement a system which will allow us "expire" groups after a certain amount of time. I'm using a custom attribute to track a group's expiration date. There will be a scheduled task that will periodically run looking at the custom attribute. Once the expiration date has arrived, the scheduled task will do a number of things.
One of the things I'd like for it to do is send an email notification to the owner/manager of the group letting them know that the group has expired, but I haven't been able to figure out how to do that. Some of our groups are owned/managed by a single user, but many are owned/managed by another group. Ideally, if the group is owned/managed by another group, I'd like to email all members of that other group.
Thanks in advance for any tips or suggestions.