0

I am trying to use the mail on the command line to send a message to don How do you end the message I do mail don

put my message in and cannot send it. I have to kill the process

1 Answer 1

2

Press CTRL-D.

Example:

$ mail -s "Hello World" someone@example.com
Cc: 
Hi Peter
How are you
I am fine
Good Bye
<Ctrl+D>

http://www.binarytides.com/linux-mail-command-examples/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.