diff --git a/lib/emailreports.pm b/lib/emailreports.pm index 0a5648b..ae53ef7 100644 --- a/lib/emailreports.pm +++ b/lib/emailreports.pm @@ -40,6 +40,7 @@ sub emailreports_send { logger("$myself: sending $report reports."); + my $hostname = $ENV{HOSTNAME} ? $ENV{HOSTNAME} : `hostname`; my $html = <<"EOF";
@@ -52,7 +53,7 @@ sub emailreports_send {