Emailing a file attachment w/ cron

Benjamin J. Weiss benjamin at weiss.name
Wed Jun 2 13:39:03 UTC 2004


From: "Paul Dubinsky" <pdubinsky at flxent.com>
> I'm using FC1 and I need to email a log file with cron. I'm currently
using
> send but send takes the logfile and makes it the body of the email. I want
> to send it as an attachment. I've Man'ed mail, send and post but none of
> these explicitly handle attachments.
>
> Any suggestions?

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





More information about the fedora-list mailing list