Commit a4cf90f2 by Chris Dodge

we need to send as an HTML email

parent d3fffc84
......@@ -701,7 +701,7 @@ def send_proctoring_attempt_status_email(exam_attempt_obj, course_name):
'exam_name': exam_attempt_obj.proctored_exam.exam_name,
'status': ProctoredExamStudentAttemptStatus.get_status_alias(exam_attempt_obj.status),
'platform': constants.PLATFORM_NAME,
'contact_email': constants.CONTACT_EMAIL
'contact_email': constants.CONTACT_EMAIL,
})
)
......@@ -712,12 +712,14 @@ def send_proctoring_attempt_status_email(exam_attempt_obj, course_name):
)
)
EmailMessage(
email = EmailMessage(
body=body,
from_email=constants.FROM_EMAIL,
to=[exam_attempt_obj.user.email],
subject=subject
).send()
)
email.content_subtype = "html"
email.send()
def remove_exam_attempt(attempt_id):
......
......@@ -34,7 +34,7 @@ def load_requirements(*requirements_paths):
setup(
name='edx-proctoring',
version='0.8.2',
version='0.8.3',
description='Proctoring subsystem for Open edX',
long_description=open('README.md').read(),
author='edX',
......
Markdown is supported
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