Python CLI (postmancli) tool for emails sending using SMTP server.
- Send emails using SMTP SSL
- Use it from terminal when it is installed
- Multiplatform execution (it is developed in Python)
You can install or upgrade postmancli with:
$ pip install postmancli --upgrade
Or you can install from source with:
$ git clone https://github.com/stt-systems/postman-cli.git --recursive
$ cd postmancli
$ pip install .
$ postmancli -S user:password@smtp.gmail.com:465 -f user@gmail.com -t someone@gmail.com -s postman-cli --text "Hello everyone!@nl@@tab@It seems that this works ..." -a "file.txt" "photo.jpg"
The example sends an email with user@gmail.com
as sender, someone@gmail.com
as receiver, postman-cli
as subject, Hello every...
as text message and 2 attachments (file.txt & photo.jpg).
Run the following command to see all options available:
postmancli --help
or postmancli -h