## this will not run and generate an html report
my $html =
my $msg = MIME::Lite->new(
Subject => 'my html report',
To => 'xxx@gmail.com',
Type => 'text/html',
Data => $html);
$msg->attach(
Type => 'text/plain',
Path => '/var/tmp/data.txt'
Disposition => 'attachment'