mailx alternatives
mail user agent (mua) alternatives that allow you to send attachments from the command line include mutt and heirloom/nail/mailxmutt
# yum install mutt
$ mutt -x -a myfile.txt me@me.me Subject: .
heirloom/nail/mailx
Allows you to send SMTP emails without having a full blown email server such as exim, postfix or sendmail installeddownload
$ wget http://prdownloads.sourceforge.net/heirloom/mailx-12.3.tar.bz2?download
make
$ cd mailx $ make
install
# make install
or
# make UCBINSTALL=/usr/bin/install install
and
$ ln -s /usr/local/bin/mailx /usr/bin/sendmail OR $ ln -s /usr/local/bin/mailx /usr/sbin/sendmail OR $ ln -s /usr/local/bin/mailx /usr/lib/sendmail
test
$ smtp=upstream nail name@mydomain.com
initialisation configuration file
if you prefer you can add SMTP to your mailx initialisation configuration file
# tail /etc/nail.rc set autocollapse # Hide some header fields which are uninteresting for most human readers. ignore received in-reply-to message-id references ignore mime-version content-transfer-encoding # Only include selected header fields when forwarding messages. fwdretain subject date from to set smtp=upstream
this should prevent CPU going to 100% if you forget to specify a valid SMTP server
REFERRERS
SystemServices