Send email attachment using a shell script

Alexander Dalloz ad+lists at uni-x.org
Thu Jul 14 10:52:34 UTC 2005


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 at target.tld

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 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20050714/ded8e7d9/attachment-0002.bin 


More information about the users mailing list