sending mail without the “mail” command

the "mail" command usually comes with nail package, but there are linux systems that do not have it by default.
so, what can you do in this situation in order to send email.

sendmail -bm toWhoEverYouWant@hisDomain.com
To: toWhoEverYouWant@hisDomain.com
Subject: ioio
ioioMessage
.

So you pass the email address twice in order to send the mail. Hitting <Enter> after the . on the last line [the dot should be alone on that line, no spaces, no nothing], the sendmail program sends the message and then exits.

Leave a Reply

*
To prove you're a person (not a spam script), type the answer to the math equation shown in the picture. Click on the picture to hear an audio file of the equation.
Click to hear an audio file of the anti-spam equation