From 2e9be102eeb20e69bce9f9dd63420b1bfe73cb23 Mon Sep 17 00:00:00 2001 From: Mudassir Hafeez Date: Mon, 9 Sep 2024 12:00:55 +0500 Subject: [PATCH] fix: use support email address from configurations(settings) (#3127) --- ecommerce/mail_api.py | 1 + ecommerce/mail_api_test.py | 1 + mail/templates/product_order_receipt/body.html | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ecommerce/mail_api.py b/ecommerce/mail_api.py index 16f6f833d..d052bbc4f 100644 --- a/ecommerce/mail_api.py +++ b/ecommerce/mail_api.py @@ -357,6 +357,7 @@ def send_ecommerce_order_receipt(order, cyber_source_provided_email=None): "vat_id": purchaser.get("vat_id"), }, "enable_taxes_display": bool(order["tax_rate"]), + "email_support": settings.EMAIL_SUPPORT, }, ), ) diff --git a/ecommerce/mail_api_test.py b/ecommerce/mail_api_test.py index 0233f793b..65e0baae5 100644 --- a/ecommerce/mail_api_test.py +++ b/ecommerce/mail_api_test.py @@ -346,6 +346,7 @@ def test_send_ecommerce_order_receipt(mocker, receipt_data, settings): "vat_id": "AT12349876", }, "enable_taxes_display": False, + "email_support": settings.EMAIL_SUPPORT, }, ) patched_mail_api.messages_for_recipients.assert_called_once_with( diff --git a/mail/templates/product_order_receipt/body.html b/mail/templates/product_order_receipt/body.html index 1133d48c7..31368be8f 100755 --- a/mail/templates/product_order_receipt/body.html +++ b/mail/templates/product_order_receipt/body.html @@ -26,8 +26,8 @@
{% endif %} Support: - - support@xpro.mit.edu + + {{ email_support }}