Subscribe to RSS Subscribe to Comments

Programming stuff: Bash, Linux, SQL and Java

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.

No comments yet. Be the first.

Leave a reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image

Based on FluidityTheme Redesigned by Kaushal Sheth Sponsored by Send Flowers