A set of rules and scripts for making interviews for Hack Bulgaria's courses
You can send emails, if you have proper people.json
and settings.py
file, by running:
$ python send_emails.py start
Where start
is a filename, placede in the messages/
folder - this is the template of the message that is going to be sent to every person from people.json
- Edit
settings.py
with your email credentials. Don't fotget to change the title of the email - From your table, somewhere, export a CSV file with the interview schedule.
- Transform it to JSON. You can use http://www.convertcsv.com/csv-to-json.htm
- Make sure that the fields, that you use in your email template, like
{Date}
, are present in the JSON file. - You need Python v. > 3
- Execute
python send_emails.py <name_of_template_located_in_messages/_folder>
There is an example_settings.py
file. You can rename it to settings.py
and insert your email credentials and the desired SMTP server.
Here is an example for Google:
EMAIL = 'your-email-here@gmail.com'
PASSWORD = "your-password-here"
SMPT_SERVER = 'smtp.gmail.com'
SMPT_SERVER_PORT = 587
You can rename example_people.json
to people.json
and send RadoRado or yourself an email to test if everything is correct, before running the script on live data.