@@ -, +, @@ --- misc/cronjobs/runreport.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/misc/cronjobs/runreport.pl +++ a/misc/cronjobs/runreport.pl @@ -322,11 +322,11 @@ foreach my $report_id (@ARGV) { my $msg = MIME::Lite->new(%mail); + my $contenttype = "text/$format"; if ( $format eq 'html' ) { $message = "$message"; - $args->{contenttype} = 'text/html'; } - $msg-> attr("content-type" => $args->{contenttype}); + $msg->attr("content-type" => $contenttype); $msg->attach( Type => "text/$format", --