echo 'The message body' | mutt -a file_to_attach -s 'The Subject' -- recip@example.com
Computer Tips - Linux: Mail an attachment from the command line
Date: 2013aug12
Update: 2025jul19
OS: Linux
Langage: bash
Q. Linux: Mail an attachment from the command line
A. Use mutt. Like this: