Re: fedora-list Digest, Vol 4, Issue 25

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 02, 2004 at 09:46:30PM -0300, Patrick Boutilier wrote:
> 
> 
> Paul Dubinsky wrote:
> <snip>
> >>
> >> I think that mutt will do this.
> >>
> >> mutt -s "This is the subject" -a attached.file -i body-text.file
> >> anybody@xxxxxxxxxxxxx
> >>
> >> Ben
> > 
> > 
> > Tried Mutt but I could only get it to work interactively. That won't do 
> > for cron.

Perl:

#!<path to perl>
use MIME::Lite;
#########################################################################
#   A simple script to send a mail with attachment.
#       NOTE: not everyone enjoys receiving attachments
#             mail with attachment cannot be searched
#
#   get more information here /sbcimp/run/pd/perl/prod/bin/perldoc
MIME::Lite
#       Mime types
#       Text/PLAIN                      Text File
#       image/gif                       Image File
#       Application/MSEXCEL             Excel Spread Sheet
#       Application/MSWORD              Word Sheet
#       Application/MSPOWERPOINT        Powerpoint
#########################################################################
 #   use MIME::Lite;
                                                                                
                                                                                
         $msg = new MIME::Lite
                     From     =>'someone.special@xxxxxxxxxxx',
                     To       =>'usera@xxxxxxxxxxx',
#                    Cc       =>'some@xxxxxxxxx, some@xxxxxxxx',
                     Subject  =>'weekend pics',
                     Type     =>'Application/MSEXCEL',
                     Encoding =>'base64',
                     Path     =>'junk.csv';
$msg->send;



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux