From aec544f5bceda329d376de1cf44d77a8ba01cc22 Mon Sep 17 00:00:00 2001 From: sohailfatima <23100065@lums.edu.pk> Date: Tue, 22 Oct 2024 22:53:11 +0500 Subject: [PATCH] feat: updated bulk email context for updated footer --- lms/djangoapps/bulk_email/tasks.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lms/djangoapps/bulk_email/tasks.py b/lms/djangoapps/bulk_email/tasks.py index dc118949530c..b751044d729c 100644 --- a/lms/djangoapps/bulk_email/tasks.py +++ b/lms/djangoapps/bulk_email/tasks.py @@ -537,6 +537,11 @@ def _send_course_email(entry_id, email_id, to_list, global_email_context, subtas email_context['course_id'] = str(course_email.course_id) email_context['unsubscribe_link'] = get_unsubscribed_link(current_recipient['username'], str(course_email.course_id)) + email_context['unsubscribe_text'] = 'Unsubscribe from course updates for this course' + email_context['disclaimer'] = ( + f"You are receiving this email because you are enrolled in the " + f"{email_context['platform_name']} course {email_context['course_title']}" + ) if is_bulk_email_edx_ace_enabled(): message = ACEEmail(site, email_context)