How do I send an email with attachment from commandline?

~ 0 min
31-07-2013 18:00

Well this is easy with mutt, so first we install mutt:

aptitude install mutt

After that we run the following command:

echo "message body" | mutt -a "/path/to/file.jpg" -s "subject" -- recipient@example.com
Average rating 0 (0 Votes)

You cannot comment on this entry

Tags

3Ware