diff --git a/AlertNotReceived.pl b/AlertNotReceived.pl index 1da149e..65a8d40 100644 --- a/AlertNotReceived.pl +++ b/AlertNotReceived.pl @@ -218,9 +218,9 @@ foreach my $comp (keys %Tools_infoCompany) { print getLoggingTime() . " - Company email: $comp_email - Send Alarm: $send_alarm\n"; if ($send_alarm == 1) { $email_addr = $ToolName{$comp}{'CompanyEmail'}; + makeEmailMsg(); + emailSend(); } - makeEmailMsg(); - emailSend(); } print getLoggingTime() . " - pid $$ >> Execution ended.\n";