Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Sending email attachments

by spartan (Pilgrim)
on Jul 25, 2003 at 23:15 UTC ( #278002=note: print w/replies, xml ) Need Help??


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!

Replies are listed 'Best First'.
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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://278002]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2023-01-27 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?