P
p cooper
Ive converted a pipe-delimited file to excel format with
Spreadsheet::WriteExcel;
I now want to email it using MIME::Lite
anyone help out with
$message ->Type & encoding
( and the other stuff if its not correct)
my $message = MIME::Lite->new(
From => 'xxxxx' ,
To => 'xxx' ,
Cc =>'xx',
Subject => 'The database file as an Excel format,
Type => 'application/excel',
Encoding => '8bit',
Data => "Database files"
);
my ($mime_type, $encoding) = ('application/xls', 'base64');
$message->attach (
Type => $mime_type ,
Encoding => $encoding ,
Path => '/tmp/file.xls' ,
Filename => 'file.xls'
);
Spreadsheet::WriteExcel;
I now want to email it using MIME::Lite
anyone help out with
$message ->Type & encoding
( and the other stuff if its not correct)
my $message = MIME::Lite->new(
From => 'xxxxx' ,
To => 'xxx' ,
Cc =>'xx',
Subject => 'The database file as an Excel format,
Type => 'application/excel',
Encoding => '8bit',
Data => "Database files"
);
my ($mime_type, $encoding) = ('application/xls', 'base64');
$message->attach (
Type => $mime_type ,
Encoding => $encoding ,
Path => '/tmp/file.xls' ,
Filename => 'file.xls'
);