这里是我手稿中的一刀子:
my %params = (
sub_name => $sub_name,
asm_name => $asm_name,
zsm => $zsm,
store => $store,
pin => $pin,
tier => $tier,
avg_weekly_all => $avg_weekly_all,
avg_weekly_br => $avg_weekly_brakes,
expected_sales => $expected_sales,
numOfBays => $numOfBays,
numOfTechs => $numOfTechs,
estimatedJobs => $estimatedBrakeJobs,
brand => $brand,
qty => $qty
);
my %options = (INCLUDE_PATH => . );
my $msg = MIME::Lite::TT::HTML->new(
From => xxx.xxxx@somecompany.com ,
To => me@somecompany.com ,
Subject => "Request (MSG ID: $id)",
Template => { html => edge14.html.tt },
TmplOptions => \%options,
TmplParams => \%params
);
$msg->attr("content-type" => "multipart/mixed");
$msg->attach(
Type => text/csv ,
Path => out.txt ,
Filename => "brake_lift_$id" . ".csv",
Disposition => attachment
);
$msg->send or die "Unable to send message: $!";
发送电子邮件(附有附件)只是罚款,但它没有在电子邮件中提供html的内容。 它是以“ATT00001.htm”的形式发送的,并附上了“ATT00001.htm”格式的“TWO dots” 。
What am I doing wrong??