fedora-list Digest, Vol 4, Issue 25
Chris M
lists at mague.com
Thu Jun 3 00:52:41 UTC 2004
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 at somewhere.com
> >>
> >> 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 at example.com',
To =>'usera at example.com',
# Cc =>'some at other.com, some at more.com',
Subject =>'weekend pics',
Type =>'Application/MSEXCEL',
Encoding =>'base64',
Path =>'junk.csv';
$msg->send;
More information about the fedora-list
mailing list