Mail Recipients

Recipient Triggers Template Code
group_secretaries group_added_comment, group_personnel_change, session_minutes_reminder None
    def gather_group_secretaries(self, **kwargs):
        addrs = []
        if 'group' in kwargs:
            group = kwargs['group']
            if not group.acronym=='none':
                rts = ReviewTeamSettings.objects.filter(group=group).first()
                if rts and rts.secr_mail_alias and len(rts.secr_mail_alias) > 1:
                    addrs = get_email_addresses_from_text(rts.secr_mail_alias)
                else:
                    addrs.extend(group.role_set.filter(name='secr').values_list('email__address',flat=True))
        return addrs