How to send out monthly mail with csv file from Save Data Adapter using PloneFormGen?

StackOverflow https://stackoverflow.com/questions/17283995

  •  01-06-2022
  •  | 
  •  

Domanda

I would like to send out a monthly mail containing the csv as stored by the Save Data Adapter of PloneFormGen. The csv file should be an attachment of this mail. After the mail is sent out, the Save Data Adapter should be cleared. Is this possible?

The idea is basically to automatically have a monthly summary of all registrations done via PloneFormGen which can then easily be imported into external tools.

È stato utile?

Soluzione

If I were doing this, I'd set it up as a Python "run" script that would be run as a monthly cron job.

Run scripts are normal Python scripts, run via commands like:

bin/client5 run myscript.py

They reveal the top of the ZMI as "app". Check PloneFormGen's source for the save-data adapter. It has methods for getting and setting the saved data. After that, it's routine scripting.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top