Re: sending mail with attachment via commandline?

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

 



On Thu, 16 Oct 2003 11:42:22 -0700
"Chris W. Parker" <cparker@xxxxxxxxxxxx> wrote:

> Hey everyone.
> 
> I've got a shell script that does a simple backup of a directory on a
> nightly basis and since I don't have samba configured I'd like to send
> that backup file to my email address.
> 
> I've 'man mail' but didn't see anything about adding attachments? Did I
> miss it or do I need to use a different command? I'm only familiar with
> 'mail' and being a command that can send mail from the command line.
> 

Hi Chris,

You can use mutt :

mutt -a $ATTACHFILE -s "$SUBJECT" $MAILTO < $TXTFILE

Cheers,
Sean


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux