Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eze-kiel/gmail-cli

Send mails via smtp.gmail.com with a simple command-line interface
https://github.com/eze-kiel/gmail-cli

cli gmail mail smtp

Last synced: 4 days ago
JSON representation

Send mails via smtp.gmail.com with a simple command-line interface

Awesome Lists containing this project

README

        

# GMail CLI

![Licence](https://img.shields.io/badge/License-GPL-brightgreen)

Send mails with your GMail account with a simple command-line interface

## Description
Typical usage :

`./gmail-cli -t [email protected] -f [email protected] -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](https://github.com/namsral/flag).

You also need to enable the access to your account by less secure apps [here](https://myaccount.google.com/lesssecureapps).
## Author

Written by ezekiel.

## Copyright

License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it.