To send a test message from the commandline we use mailx
:
mailx [email protected]
CC: <enter> to skip
Subject: This is a test
This is just a test message
.
<ctrl-D>
Each message ends with a newline followed by a period. To send the message use <ctrl-D>
.