feat: added user email in email sent event data (#35456)
This commit is contained in:
committed by
GitHub
parent
bb6ac5a898
commit
1103544a07
@@ -55,5 +55,6 @@ def ace_email_sent_handler(sender, **kwargs):
|
||||
'channel': channel,
|
||||
'course_id': course_id,
|
||||
'user_id': user_id,
|
||||
'user_email': message.recipient.email_address,
|
||||
}
|
||||
)
|
||||
|
||||
@@ -533,7 +533,7 @@ def _send_course_email(entry_id, email_id, to_list, global_email_context, subtas
|
||||
email_context['email'] = email
|
||||
email_context['name'] = profile_name
|
||||
email_context['user_id'] = user_id
|
||||
email_context['course_id'] = course_email.course_id
|
||||
email_context['course_id'] = str(course_email.course_id)
|
||||
email_context['unsubscribe_link'] = get_unsubscribed_link(current_recipient['username'],
|
||||
str(course_email.course_id))
|
||||
|
||||
|
||||
@@ -64,6 +64,7 @@ def opt_out_email_updates(request, token, course_id):
|
||||
event_name = 'edx.bulk_email.opt_out'
|
||||
event_data = {
|
||||
"username": user.username,
|
||||
"user_email": user.email,
|
||||
"user_id": user.id,
|
||||
"course_id": course_id,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user