Send mails from the CLI
Warning : this app have to save your password
First install python3 and pip3. Then install csmail:
sudo pip3 install git+https://github.com/ThHareau/csmail
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>"