This is the mail archive of the
mailing list for the Cygwin project.
Re: cygwin-email utility clipping attached zips
- From: Joey Officer <jofficer at wi dot rr dot com>
- To: Dave Korn <dave dot korn at artimi dot com>, cygwin at cygwin dot com
- Date: Wed, 10 Jan 2007 11:22:00 -0600
- Subject: Re: cygwin-email utility clipping attached zips
- References: <006701c734d6$d8531e00$a501a8c0@CAM.ARTIMI.COM>
I spoke with Dean as well, the author, and he advised the same. I wrote
a little script that accomplishes what I need, and wanted to share it,
pasted in line below:
for x in *.pdf; do
email email@example.com -s test -a $file < sample.txt
Hope someone finds some use for it.
Dave Korn wrote:
On 10 January 2007 16:03, Joey Officer wrote:
I'm using it send attachments, but I would like to be able to send
multiple attachments using a wildcard expression. Unfortunately when I
specify something like *.pdf , it only grabs the first PDF file within
my sample command line is something along the following:
$ email.exe firstname.lastname@example.org -s testing -a *.pdf < body.txt
This grabs files1.pdf but not files2.pdf or any other file.
Is anyone using email.exe to send multiple 'unknown' attachments?
You need a '-a' before /each/ of the filenames to attach. Otherwise it'll
think they're recipient names.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html