In recent versions of mutt the -a
option is designed to allow multiple arguments so that you can do -a *.txt
to attach any number of files which match that pattern. Because of this it must be the last option used and separated from the recipients by --
:
echo Sending Test | mutt -s "test email" -a test.txt -- name@example.com