in reply to Re: Sending email attachments in thread Sending email attachments
Won't that send out a seperate email for each file? Don't get me wrong, your solutiuon is elegant, and simple, but for a large number of files, it could be frustrating for the recipient.
Very funny Scotty... Now PLEASE beam down my PANTS!
Re: Re: Re: Sending email attachments
by Limbic~Region (Chancellor) on Jul 25, 2003 at 23:33 UTC
|
spartan,
Yes - but that's what the original snippet does. If you wanted to send them all at once (better hope they are small files or that there are no size restrictions along the way), you would simply do:
$ (for file in `ls`
> do
> subject="$subject $file"
> uuencode $file $file
> done) | mailx -s "$subject attached" email@address.com
Cheers - L~R
| [reply] [d/l] |
|