Linux command line email can be a very good thing. For example. if for some reason. you should lose your gui interface then you can still interact with the world. Personally I like it because not using the gui allows the machine to work faster and I can use an old laptop or desktop with less than up to date resources. Besides you can automate certain procedures repeatably, that you can not always do in a graphical environment. Hopefully once again you will have less reason to send a computer to the landfill.
Step 1: Get your gmail account.
We need what is called a relay agent. Gmail can do that for us. It will be our mailman so to speak. If you have not already done so you need to install a command line browser. Yes, you can access the web from the command line.
$ sudo apt-get install links2
Using links2, you will need to go to www.gmail.com and set up an account if you do not already have one.
$ links2 http://www.gmail.com
Go to create account and create one.
Do not forget to write down your username, password, and real name. You will need it in the next step.
Note for sake of reference, included is a gui picture of the gmail site.