/csmail

Send mails from the CLI

Primary LanguagePython

CLI Send Mail

Send mails from the CLI

Warning : this app have to save your password

Installation

First install python3 and pip3. Then install csmail:

sudo pip3 install git+https://github.com/ThHareau/csmail

Usage

First, configure your first email:

sudo csmail email add <YOUR EMAIL> <YOUR SMTP SERVER HOSTNAME> <YOUR PASSWORD>
# the password will be saved unencrypted in a file own by the root user, but accessible by a normal user. Consider deleting the email address once finished. 

Then send your first email:

csmail send -s "your subject" "Your message" "<SOME RECIPIENT EMAIL>"