25 Feb
2004
25 Feb
'04
14:56
Hi Hans,
Hi everybody,
How can I mail an attachment with either the sendmail (from postfix) or mail (from mailx) command? The relevant man pages don't mention attachments, but I'm sure there's some fancy piping or something that would allow this.
[ snip ] you might want to try this: uuencode filename filename | mailx -s "your subject here" foo@domain.com The double "filename" is not a typo. The first one is the real filename and the second is how you want to name the uuencoded one. HTH, Martin