I’m trying to send an email as below from unix environment.once i enter the command it does nothing and i have to kill the process manually.am i missing something here? i believe body is optional.
mail -s "Testing" user@mail.com
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, it will appear to do nothing, it’s waiting for you to type in the body of the email before sending it.
From the BSD
mailman page (though they’re all pretty similar):So simply use the end-of-file input sequence CTRL-D (rather than the CTRL-C break sequence) to end the input and send the email.
Alternatively, try:
or:
where the two methods of providing empty input effectively do the same thing, without you having to type anything.