Thursday, September 5, 2013

Send a file as an email attachment using Linux command line

yum install mutt

echo "This is the message body" | mutt -a "/path/to/file.to.attach" -s "subject of message" -- recipient@domain.com

No comments: