Use Gmail To Send Emails From A Terminal (Shell)

We've seen how to check Gmail using the terminal (shell) in Linux and Mac but how about sending emails from a shell?

This is actually pretty easy, here's what you have to do: