Re: mail command without sendmail


Subject: Re: mail command without sendmail
From: Anthony Valentine (amv@akvalentine.com)
Date: Wed Jan 29 2003 - 21:08:17 AKST


When I need to send e-mails from the command line like that, I use a
perl script called sendEmail. It will use sendmail, or you can specify
an SMTP server. Quite handy.

http://freshmeat.net/projects/sendemail/?topic_id=28

On Tue, 2003-01-28 at 13:33, Chris Hamilton wrote:
> Ooops. I'm using the shell. The script is very simple and looks like this.
>
> find /backup_dir -mtime -1 | mail me@me.com -s "Backup status"
>
> It just sends me list of files that were backed up.
>
> If anyone has a more elegant solution, I'd be more than happy to hear (or
> see) any ideas.
>
> Thanks.
>
> Chris.
> ----- Original Message -----
> From: "Joshua J.Kugler" <isd@as.uaf.edu>
> To: <aklug@aklug.org>
> Sent: Tuesday, January 28, 2003 1:28 PM
> Subject: Re: mail command without sendmail
>
>
> >
> > You didn't say which language (although I'll assume sh, since you're using
> > the mail command), but if it's Perl, you could use the Net::SMTP module.
> I'm
> > sure Python has something similar.
> >
> > j----- k-----
> >
> > On Tuesday 28 January 2003 13:26, Chris Hamilton wrote:
> > > I'm trying to put together a script that uses the mail command, but it
> > > doesn't like to run on machines without sendmail.
> > >
> > > I'm getting this message...
> > >
> > > /usr/sbin/sendmail: No such file or directory
> > >
> > > Any suggestions?
> >
> > --
> > Joshua Kugler, Information Services Director
> > Associated Students of the University of Alaska Fairbanks
> > isd@asuaf.org, 907-474-7601
> >
> > ---------
> > To unsubscribe, send email to <aklug-request@aklug.org>
> > with 'unsubscribe' in the message body.
> >
> >
>
>
>
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.

-- 
Anthony Valentine <amv@akvalentine.com>

--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Wed Jan 29 2003 - 21:08:30 AKST