Send attachment via command line in Linux You can do that using mpack mpack -s "This is the subject" -d body.txt attachment.zip myemail@mydomain.com