my @test = ("Row1", "Row2", "Row3");
my $attch = join("<cr><lf><br>\\n", @test);
$message = MIME::Lite->new(
From => $mailFrom ,
To => $address,
Subject => $title,
Type => 'text/html',
Encoding => '8bit',
Data => $data
);
$message->attach(
Type =>'TEXT',
Data => $attch
);
MIME::Lite->send('smtp', $host, Timeout => 20);
$message->send;
こんにちは、メールでファイルを送信しようとしていますが、正しい改行を書くことができません。コードは添付ファイル付きのメールを送信します。この添付ファイルには次の情報が含まれています:
"Row1<cr><lf><br >\nRow2<cr><lf><br>\nRow3"
取得方法:
Row1 Row2
Row3
添付ファイルで?