mail x company solo se c'è send alarm impostato

This commit is contained in:
2019-01-28 20:23:05 +01:00
parent c6eaf2f9b6
commit 6acf32da48

View File

@@ -218,9 +218,9 @@ foreach my $comp (keys %Tools_infoCompany) {
print getLoggingTime() . " - Company email: $comp_email - Send Alarm: $send_alarm\n"; print getLoggingTime() . " - Company email: $comp_email - Send Alarm: $send_alarm\n";
if ($send_alarm == 1) { if ($send_alarm == 1) {
$email_addr = $ToolName{$comp}{'CompanyEmail'}; $email_addr = $ToolName{$comp}{'CompanyEmail'};
}
makeEmailMsg(); makeEmailMsg();
emailSend(); emailSend();
} }
}
print getLoggingTime() . " - pid $$ >> Execution ended.\n"; print getLoggingTime() . " - pid $$ >> Execution ended.\n";