SourceCode can be found here
In chapter Read data from InfluxDB and write its value into a CSV-File a CSV-File was created and stored with variables.
In this step, this CSV-File should be send via a SMTP server to an e-mail adress of a technician for a daily report.
-
In oder to use the e-mail nodes needed, you need to install the "node-red-node-email" package from the Palette Manager.
-
Import the attached flow
-
Select what file should be attached to your email via the "get file" node.
In my example the CSV-File created before "CSVTest.csv" inside the folder /opt/plcnext/CSV/ will be attached.
You can change the function node "write email" accordingly to your required text. -
The sending mail-address needs to be logged in (via password).
Set your username and passwort.
The receiver just needs a mail-address