Mailer is a command line tool for sending emails from gmail account.
sudo -H pip3 install git+https://github.com/ankiano/mailer.git -U
mailer --help
mailer --to [email protected],[email protected] \
--subject "Subject of the mail" \
--body "Somebody message"
`--to` param can pass one or several recipients separated by ,
mailer --to mailing.list \
--subject "Subject of the mail" \
--body message.txt
--attachment file1.zip
--attachment file2.zip
`--to` param can pass a file containing a list of recipients separated by \n (new line)
host: smtp.example.com
port: 25
use_ssl: False
username: [email protected]
host: smtp.gmail.com
port: 465
use_ssl: True
username: [email protected]
password: appkey
#https://security.google.com/settings/security/apppasswords