On Wed, May 12, 2010 at 03:28:47PM +0800, Qi Zhang wrote:
But I still have problems. That is: if I use -a $attachments, then only attach one file, others will act as recipient. I should use -a file1 -a file2 instead of -a file1 file2. Am I right?
As others have indicated in their examples, you don't need to prefix each file with "-a". Use "--" to separate the list of attachments from the list of recipients:
mutt -s 'subject' -i msg_body -a file1 file2 file3 -- recipient1 recipient2 Ed
signature.txt
Description: Digital signature