You can do that using mpack shmpack -s "This is the subject" -d body.txt attachment.zip [email protected]