This script allow to export reporting of umami and send them to a specific email adress.
create a .env file that contains:
- URL: url of the website
- USER: the user for the login
- PASSWORD: the password for the login
- SENDER_EMAIL: email of the sender
- SENDER_PASS: password of the account of the sender
- RECEIVER_EMAIL: "to" email of the person who get the mail
then install dependancies with npm
npm i
finally you can launch the script manually or by a cron task with the command:
node script.js
This script will send pdf files by email for every websites you have in your umami. One website = one pdf.