RT::Action::NotifyAdditionalAddresses - sends notifications to additional addresses defined for the distribution


RT-BugTracker documentation Contained in the RT-BugTracker distribution.

Index


Code Index:

NAME

Top

RT::Action::NotifyAdditionalAddresses - sends notifications to additional addresses defined for the distribution

DESCRIPTION

Top

Either maintainer or user with the AdminQueue right can define additional addresses for notifications. This is a subclass of RT::Action::Notify that notifies those recipients.


RT-BugTracker documentation Contained in the RT-BugTracker distribution.

package RT::Action::NotifyAdditionalAddresses;

use strict;
use warnings;
use base qw(RT::Action::Notify);

sub SetRecipients {
    my $self = shift;
    my $addresses = $self->TicketObj->QueueObj->NotifyAddresses;
    return unless $addresses && @$addresses;
    $self->{'To'} = [ @$addresses ];
}

1;