Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Olivier
Peer-graded student exercises
Commits
bff6831a
Commit
bff6831a
authored
Aug 15, 2019
by
Olivier
Browse files
M8: title of email is defined together with body + general cleanup
parent
e7ea6f3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
M8_send_grading/email_grading_forms.py
View file @
bff6831a
# -*- coding: utf-8 -*-
"""
Author: Germán Santa
Maria
Author: Germán Santa
-
Maria
Script: Email Grading Forms
"""
"""-------------------------Hard coded input--------------------------------"""
# Input file
s
paths
# Input file paths
input_csv_path
=
'script_input/peers.csv'
attachments_path
=
'script_input/'
attachments_path
=
'script_input/
pdfs/
'
# Output file
s
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!
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment