Closed TheLethalCode closed 5 years ago
@TheLethalCode Please describe the changes that you've made. It'll be also helpful for the future. I'm unable to understand this at the moment. Haven't worked with this. Also, please remove other files which aren't part of this PR. This is reflecting some of the older commits,
Also, please either make it a new file or add a new function. This works only for sending mentor mails for mid evals. The script sendgrid_mail.py
is general for sending mails automatically.
@themousepotato as far as I see only one file has been changed :/ . And I thought of making a new file, but pretty much evrything is the same. Only the 'main' and the file with the mail ids has to be changed. So I didnt see a point of creating a new file. And more over, this branch focuses on mentor mid evals, so I dont think there is much harm in changing, though as I said, the base template is the same. The script uses the mentor id and name hashing from mentor_unique_ids.json, and name and mail hash from projects.csv to generate the link for every mentor and send the email.
@TheLethalCode I'll be using code from your PR, but not merging it.
The script for sending the mail is in kwoc/sendgrid_mail.py . Make sure to export the env variables of the sendgrid api. And I might have added one too many < br's > in the body of the email. Everything else should be fine. @themousepotato @Ayushk4 @thealphadollar