0
としてHTMLコンテンツを送信していることは私のPerlスクリプトからの抜粋です:PerlのモジュールMIME :: Liteの:: TT :: HTMLは、添付ファイルここ
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 => '[email protected]',
To => '[email protected]',
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"の形式でhtmlを添付しています。はい、それは 'htm'の前に2ドットあります...
何が間違っていますか?