Sending a file attachment from the command line

Finally I found out how to send a file attachment from the command line.

echo "This is the body" | mutt -s "Subject Line" -a file.txt -- email@domain.com

Borrowed from souptonuts



Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 18.204.227.34
To prevent spam please submit by clicking the kitten: