I found the answer. I'm not sure about Raspbian but xbian version 1.0a4 doesn't have the mail utility installed. I first installed the mail utility as follows:
sudo apt-get install mailutils
Then I ran this command:
I selected "mail sent by smarthost; no local mail" and configured the SMTP server of my ISP.