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

Leave A Reply
All content licensed under the Creative Commons License