Select to view content in your preferred language

Capture Email from Citizen Problem Reporter

538
0
05-13-2020 07:37 AM
JoeBorgione
MVP Emeritus

We have deployed the Citizen Problem Reporter solution, and it appears to be functioning, but we would like to add one more piece of functionality to it.

The solution comes with two python scripts: servicefunctions.py and send_email.py; we run the servicefunctions.py script as a scheduled task every hour to see if any new service requests have been made.

I didn't actually configure the solution but as I understand the way it works is it populates an html file that is then passed to the send_email script.  The html file contains information like who is getting the email, what the problem is and where the problem is.

My twist on this is I'd like to capture the information in the html file and write it to a log file so we have a record of when email was sent, to who, and what the problem is.  However, I'm at a complete loss as to how to do that.

Is anyone familiar enough with those two scripts to help me out?

That should just about do it....
0 Kudos
0 Replies