Using 'mutt' instead of 'mail' in Linux

With mutt instead of mail you would simply call

echo "body" | mutt -s "subject" -a attachment0 attachment1 [...] -- my@email.com
 
Some old verison of linux doesn't support the 'mail' command for attaching files. 
So this will be useful for sending mail with attachment on those servers.  

Comments

Popular posts from this blog

CDbConnection failed to open the DB connection mysql 8

/bin/sh^M: bad interpreter: No such file or directory Linux

Send mail from Oracle Solaris OS with attached files