Skip to content

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

Notifications You must be signed in to change notification settings

eze-kiel/gmail-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

GMail CLI

Licence

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

Description

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.

Author

Written by ezekiel.

Copyright

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages