Sends a monthly email using a provided template and attachments.
You will need to create a .env
file inside private
dir, you can use the follow template:
FROM=Myself <[email protected]>
TO[email protected]
# {{month}} will be replaced by the actual month
SUBJECT=Files of {{month}}
LOCALE=pt-PT
STATEMENTS_FILE_NAME=statements
INVOICE_FILE_NAME=invoices
You also will need a private.pem
, a wise-statements.config.json
files, required by the wise-statements package, a vendus-export.config.json
file, required by the vendus-export package, a template.txt
file with the message you want to send (you can use the {{month}}
placeholder inside) and a smtpConfig.json
file, required by the Nodemailer, all these files inside private
dir.