From a76828f240270c4b9cf14d16f9d67387f01327be Mon Sep 17 00:00:00 2001 From: Eve Martin Date: Thu, 2 May 2024 11:17:39 +0000 Subject: [PATCH] address PR comment --- cfl_common/common/mail.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cfl_common/common/mail.py b/cfl_common/common/mail.py index 5c1ee76cc..f4412ae93 100644 --- a/cfl_common/common/mail.py +++ b/cfl_common/common/mail.py @@ -111,6 +111,7 @@ def send_dotdigital_email( """ # pylint: enable=line-too-long + # Dotdigital emails don't work locally, so if testing emails locally use Django to send a dummy email instead if MODULE_NAME == "local": django_send_email(from_address, to_addresses, "dummy_subject", "dummy_text_content", "dummy_title") else: