Send Email from command line in Ubuntu 11.10

Have problem to send email from command line according to the posts like this one:

To have the ability to send email from the command line, you will need  to install the mailutils and postfix packages with the following  commands.
apt-get install mailutils
apt-get install postfix

Now configure postfix by running the following command.
dpkg-reconfigure postfix

Your machine should now have the ability to send email from the command line. Test it.
echo "test" | mail yifang.tom@hotmail.com

Did not touch the postfix configuration part though, left it unchanged. But I never get it work. No error no mail in my hotmail.com. I must have missed something about the configuration. What I want to do is to send email to friends, and even my own hotmail account, from the command line when I am in the campus, office and home (I have wireless internet access at these three places where I do my stuff mostly.) I am using Ubuntu 11.10 on Compaq CQ630 laptop. My ISP is SHAW.COM and I do not have a domain at this moment.
Thanks a lot! YF

if you still try to send mail here is another explanation sounds better because of configuration provider and so on:
email - How to send mail from the command line? - Ask Ubuntu - Stack Exchange

1 Like