send mail from shell on 8.04 server (how to?)

Nik N niknot at gmail.com
Mon Oct 12 15:53:28 UTC 2009


I have an 8.4 server behind a router which *is not* configured as a
mail server. Specifically, I don't want to install postfix/sendmail or
anything that runs as a service and likely impacts the security of the
box.

How do I send an e-mail message from shell? Ideally, it would be something like:

sendMyMsg -s Test -r somedude at somedomain.com -t "Hello dude!" -m mail.myisp.com

(Where -s is subject, -r recipient, -t text and -m the outgoing smtp server).

TIA, Nik N.




More information about the ubuntu-users mailing list