Repository to send emails based on the csv data files created from Kobo during the COVID-19 pandemic. It also accepts custum made .csv and .xlsx if they have the needed fields contained in the main.py file.
This application supports Python 3.6+ due to the usage of f-strings.
To use it you must have an gmail server that allows the usage of less secure apps. If you wish to use another email provider, change the line
with smtplib.SMTP_SSL('smtp.gmail.com', 465) as smtp:
to
with smtplib.SMTP_SSL('smtp.yourmailprovider.com', your_ssl_port) as smtp:
at the bottom of the mailling_system.py script.
This e-mail body and attachments are pre-programmed based on the Federal University of Rio de Janeiro Center of Science and Health templates, as this project was made for it, however the user can change the templates used by the program interface.
Besides the email address you need to write your user id and project id. It will be loaded automatically if you create a "tokens.json" file containing both. E.g.
{
"form_uid": "your_form_uid",
"auth_token": "your_auth_token"
}
If you wish to create a .msi to windows user run
"python setup.py bdist_msi