I am trying to test the mail capabilities of my server. I simply do this mail -s "This is a test" [email protected]
, then it prompts me for Cc:
then the body. After typing into the body I am hitting Control + D, however it seems that it is not exiting in the body. What am I missing here?
1 Answer
You don't need Control+D:
mail -s "This is a test" [email protected]
- hit ENTER- Write eMail body text, when you're done, press ENTER.
- Enter a single dot on the new line, press ENTER again to complete the body.
- You're now asked to provide Cc: addresses, just skip this with ENTER
Voila, you're done.
mail
. To detect that, run it in a debug mode:$mail -s "test" [email protected] --debug-level=3
In my case it hanged during sending body. You can find more information in this answer.