Re: Send email attachment using a shell script

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

 



On Thu, 2005-07-14 at 13:09 +0300, Hany Nagaty wrote:
> Hi all,
> 
> I'd like to send an email containing an attachmnet using a script.
> I've tried the mail command (in the mailx package), but I don't know
> how can I use it to send an attachment.
> 
> So, is there a way I can use mail to send an attachment, or is there
> other utility to do the job.
> 

This is a command line that will work if you have mutt installed.

$ cat <body file> | mutt -a <attach file> -s <subject> <to email>

Take a look at the man page for other command line options to mutt.

Todd


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

  Powered by Linux