Mail Recipients

Recipient Triggers Template Code
group_secretaries group_added_comment, group_personnel_change, review_availability_changed, review_reminder_overdue_assignment, session_minutes_reminder, slides_proposed 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:
                    for role in group.role_set.filter(name='secr'):
                        addrs.append(role.email.address)
        return addrs