So I've installed mailx but I'm unable to get it to send an e-mail. I do the following:
mailx -s "Test"
To: [email protected]
Cc:
"This is a test."
CTRL-D (does not work)
CTRL-D does nothing. It's supposed to end the body and fire off the e-mail, but does not seem to be doing anything.
Here's my /etc/hosts file. I'm not sure if this is correct.
127.0.0.1 localhost localhost. hp-laptop hp-laptop.
10.XXX.X.XXX hp-laptop.
Any suggestions on what's causing the issue?
Thanks
Ctrlanddtogether (which is what you should be doing). I believe typing a lone dot on a line also ends the message.