From 3068dad4108de2a8dfd9ce7fe24e7fc743115924 Mon Sep 17 00:00:00 2001 From: "Nihantra C. Patel" <141945075+Nihantra-Patel@users.noreply.github.com> Date: Thu, 25 Apr 2024 12:01:28 +0530 Subject: [PATCH] fix: rendering the email template when user HTML (cherry picked from commit 7cb66f7fd3e20e8881fc2a4406a9aaef7c3c723c) --- erpnext/crm/doctype/email_campaign/email_campaign.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/crm/doctype/email_campaign/email_campaign.py b/erpnext/crm/doctype/email_campaign/email_campaign.py index 17cf0e461d0..f8fce7ab697 100644 --- a/erpnext/crm/doctype/email_campaign/email_campaign.py +++ b/erpnext/crm/doctype/email_campaign/email_campaign.py @@ -121,7 +121,7 @@ def send_mail(entry, email_campaign): doctype="Email Campaign", name=email_campaign.name, subject=frappe.render_template(email_template.get("subject"), context), - content=frappe.render_template(email_template.get("response"), context), + content=frappe.render_template(email_template.response_, context), sender=sender, recipients=recipient_list, communication_medium="Email",