Commit bff6831a authored by Olivier's avatar Olivier
Browse files

M8: title of email is defined together with body + general cleanup

parent e7ea6f3b
# -*- coding: utf-8 -*-
"""
Author: Germán Santa Maria
Author: Germán Santa-Maria
Script: Email Grading Forms
"""
"""-------------------------Hard coded input--------------------------------"""
# Input files paths
# Input file paths
input_csv_path = 'script_input/peers.csv'
attachments_path = 'script_input/'
attachments_path = 'script_input/pdfs/'
# Output files paths
# Output file paths
output_csv_path = 'script_output/sent_emails.csv'
# (Hard-coded email settings)
......@@ -23,7 +23,7 @@ password = input("Type your password and press enter:")
# Delay time between sending two emails, in seconds
# For example, set 240 seconds if you are limited to less than 30 emails/hour
# and 40 seconds if the limit is less than 30 emails/10 min
delay_time = 45
delay_time = 45
"""-------------------------------------------------------------------------"""
# Import email sender function
......@@ -94,8 +94,12 @@ print('All the attachments were found in the input folder')
print(' ')
"""-----------------Build email text for each student-----------------------"""
# Write a personalized email body for each student
###########################################################################
# Content specific to assignment exercise
email_subject = "Please grade two of your peers"
standard_body = """Dear XXstudent_firstnameXX,
congratulations for submitting your first coursework assignment!
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment