On Fri, 2008-10-10 at 08:42 +0200, mouss wrote: > Uwe Dippel a écrit : > > 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? > > > > There are already: mutt, mpack, metamail, ... > > > (That said, perl and perl modules are available as packages on many > systems :) > >
or just bash and coreutils, http://linuxnet.ca/postfix/attachment --