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

IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified [ISQL]ERROR: Could not SQLConnect

Linux Command to delete files older than x days in a directroy

CDbConnection failed to open the DB connection mysql 8