Send mails with your GMail account with a simple command-line interface
Typical usage :
./gmail-cli -t recipient@example.com -f yourname@gmail.com -s subject -m 'sent thanks to a CLI!' -p yourGMailpassword
Flags :
-f Sender of the mail (also your username used to connect to your GMail account)
-m The content of your message
-p The password of your GMail account
-s The subject of the mail
-t The recipient of your mail
Note that your password and username can be declared in environnement variables, since I'm using namsral's flag package.
You also need to enable the access to your account by less secure apps here.
Written by ezekiel.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it.