Send mails with mutt on Linux
Given that the sendmail MTA is in use on Linux.
Install mutt:
# yum install mutt
# vi ~/.muttrc
Append the following into .muttrc:
set sendmail="/usr/sbin/sendmail"
set use_from=yes
set realname="webmaster"
set [email protected]
set envelope_from=yes
Send email:
# echo "CONTENT" | mutt -s "SUBJECT" -a /path/to/attachment.zip [email protected]