Re: Send email attachment using a shell script

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

 



Am Do, den 14.07.2005 schrieb Hany Nagaty um 12:09:

> 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.

uuencode foo.gif /dev/stdout | mail -s "my subject line"
recipient@xxxxxxxxxx

uuencode part of the sharutils rpm.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 12:48:58 up 18 days, 19:41, load average: 0.21, 0.15, 0.14 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


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

  Powered by Linux