Help for this page

Select Code to Download


  1. or download this
    sub sendmail {
        my ($REPORT,$CONFIG,$RESULT) = @_;
    ...
        my $MAIL_TO = $CONFIG{MAIL_TO}[0];
        delete $CONFIG{MAIL_TO}[0];
        my @MAIL_CC = $CONFIG{MAIL_TO};
    
  2. or download this
        my $MAIL_TO = shift @{ $CONFIG{ MAIL_TO } };
    
  3. or download this
        my $MAIL_CC = $CONFIG{ MAIL_TO };
    
  4. or download this
        if ($RESULT == 1){
    ...
    ...
    +entication\n";}
            if ($RESULT == 2){ $CONFIG{MAIL_DATA} .= "Provided Username/pa
    +ssword combination passed Auth
    +entication, but tacacs profile doesn't allow privileged mode\n";}