This project aims to create a specific email for each specific problem, error or other stuff, starting from a general template and adapted using Python Jinja2
This app takes arguments:
-for--power-failureto send an email when the power went out-ror--power-restoreto send an email on power return-kor--power-killto send an email when the UPS running out and the server will be stoped-Tor--testto set debugging mode
In debugging mode the server sends email using the configuration under [TEST] section.
In the config.ini there are all the settings needed to make the app work properly.
In the [SMTP] section there are all the settings to connect the app to the smtp server. In the [POWER] section there are all the necessary setting in case of power failure