mouss wrote:

or use Perl.

use MIME::Lite;

my $msg = MIME::Lite->new(
    From    => '[EMAIL PROTECTED]',
    To      => '[EMAIL PROTECTED]',
    Cc      => '[EMAIL PROTECTED], [EMAIL PROTECTED]',
    Subject => 'blah blah',
    Type    => 'multipart/mixed'
);

$msg->attach(
    Type     => 'TEXT',
    Data     => "blah blah blah blah"
);

$msg->attach(
    Type     => '|application/vnd.ms-excel|',
    Path     => '/path/to/foo.xls',
    Filename => 'foo.xls',
    Disposition => 'attachment'
);

$msg->send;



Thanks,

you were faster than me, I was already starting to devise some in shell script.

Aside of hacks, I *think* that it might make sense to have a non-hacked solution. As system administrators, we, at least I, send quite a number of items with mail (cronjobs). Therefore, IMHVHO, a tool distributed with *nix or *fix (wrapping around mail) might be useful?

Uwe


Reply via email to