Runs specified process and sends email notification with program's output if exit code was not zero (Windows only)
Usage: task_sendmail.exe [--verbose] --config PATH_TO_CONFIG.ini PROGRAM_TO_RUN [arguments]
Config file should be in the format of .ini file, example:
[smtp]
enabled = true
host = smtp.gmail.com
port = 465
user = [email protected]
password = some-pass
StartTLS = true
from = [email protected]
to = [email protected]
[file]
enabled = true
dir = C:\my\dir
NOTE: task_sendmail supports only unencrypted SMTP connections or SMTP with StartTLS. See https://sendgrid.com/blog/what-is-starttls for explanation