Send emails from your gmail account from the command line
01 Mar 2015
This provides a passwordless solution for Debian based distros by using gnome-keyring
And add the following:
Now use the tool to set your password:
This way, your password is not stored in plaintext and you can still send emails without being prompted for your password.
And now you should be able to send emails like so: