[CentOS] Sending mail from CLI to another SMTP host

Thu Apr 1 04:55:20 UTC 2010
Joseph L. Casale <jcasale at activenetwerx.com>

>Hi all,
>Is it possible to send mail from CLI (bash, python) without any LOCAL
>SMTP installed, using SMTP on another machine.
>Care to give a glimpse of the code?
>Thank you.

But of course, just cause the smtp server you are pointed at initially
is local, interpret that as 127.0.0.1. So point to another. Most home
users don't have their own smtp server, they use their isp's...

http://heirloom.sourceforge.net/mailx.html

"Supports SMTP to send messages directly to a remote server. A local
 sendmail interface setup is thus not necessary."