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:

email.bash
#!/bin/bash
export file=""
for x in *.pdf; do
        export file=$file,$x
done
echo $file
email [EMAIL PROTECTED] -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
the directory.

my sample command line is something along the following:

$ email.exe [EMAIL PROTECTED] -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.


    cheers,
      DaveK

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to