$normal = '</span>';
}
+#
+# The HTML Email headers
+#
+
+$html_header = "<body bgcolor=\"#191c26\" style=\"width: 600px; font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; font-size: 12px; line-height:1.4em; margin: 0 0 0 10px;\">";
+
# Is a warning present?
my $warn_present = 0;
my $exit_value = 0;
my $title = "MythTV status for $host";
my $output = "$title\n";
-my $html = "<h1>$title</h1>\n";
+my $html = $html_header . "<h1>$title</h1>\n";
$output .= '=' x length($title) . "\n";
for my $block (@blocks) {
$suffix = "MULTIPLE WARNINGS";
}
- # my $html = '<span style="color:green">\n';
- # $html .= $output;
- # $html .= "</span>\n";
-
my $mail = MIME::Entity->build(
To => \@email,
Subject => $title . (defined $suffix ? " - $suffix" : ''),
$mail->send('sendmail');
- # print $mail->as_string;
+ print $mail->as_string;
}
}