Hi all,
I’m runing ironwood
and trying to send an e-mail with CC and CCO.
This is the version of edx_ace
edx-ace==0.1.10
My code looks like:
def send_assignment_graded_email(self, request, module, msg):
"""
Send email to the user notifying the assignment was graded by instructor.
"""
user = module.student
to_address = user.email
msg_context = {
'graded_assignment_url': reverse(
'jump_to',
kwargs={
'course_id': unicode(self.location.course_key),
'location': unicode(str(self.location))
},
request=request
),
'platform_name': settings.PLATFORM_NAME
}
msg = msg.personalize(
recipient=Recipient(user.id, to_address),
language=request.LANGUAGE_CODE,
user_context=msg_context,
)
try:
ace.send(msg)
log.info("Assignment Graded email has been sent to User {user_email}".format(
user_email=to_address
))
...