No subject


Thu Apr 19 13:57:37 EDT 2007


I did not see your original request , sorry
If you are doing this from perl then have a look at MIME::Entity 
It allows to send all sorts of files e.g csv Excel files etc
Small snippet of perl code

use MIME::Entity ;
my $email_addrs = "Matt.M.Garrett\@is.shell.com";
my $header = "Nagios Availability Report \nDouble click to open and
launch
(Excel)";
my $subject = "Nagios Availability report .";
my $mail = MIME::Entity->build(
                                Subject => $subject,
                                To => $email_addrs,
                                Type    => 'text/plain',
                                Encoding => '7bit',
                                Data    => $header) ;

 $mail->attach(Encoding => 'base64',
                Type    => 'application/msexcel',
                Description => 'Nagios Availability',
                Disposition => 'attachment',
                Filename => 'Nagios.CSV',
                Data    => \@avail );

 $mail->send('sendmail') ; 

--------------------------------------------------


Thanks Again,
Dave
_______________________________________________
sunmanagers mailing list
sunmanagers at sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers




More information about the summaries mailing list