LOCAL MAILING


mail -v -s "The subject goes here" someone@somewhere.net [enter]
Hey, how's it going? [enter]
. [enter]
sendEmail -f myemail@myisp.com -t username@yahoo.com -s smtp.myisp.com -u
"Hello boss" -m "Hello boss, this is just a test message"
sudo apt-get install sendEmail
Now to send email ,
sendEmail -f FROM -t TO -s SERVER -u SUBJECT -m MESSAGE
Example :
sendEmail -f myemail@myisp.com -t username@yahoo.com -s smtp.myisp.com -u
"Hello boss" -m "Hello boss, this is just a test message"

REMOTE MAILING WITH TELNET AND SMTP COMMANDS

telnet localhost 25
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.postfix-howto.de ESMTP Postfix
helo localhost
250 mail
mail from: testing at example.com
250 Ok
rcpt to: tester at localhost
250 Ok
data
354 End data with .
some text
.
250 Ok: queued as B58E141D33
quit