From 3aef23773a6594616e93b089fd67de4678bd845e Mon Sep 17 00:00:00 2001
From: sandeepsajan0 <sandeepsajan0@gmail.com>
Date: Tue, 14 Jun 2022 15:39:34 +0530
Subject: [PATCH] Add EMAIL_SUBJECT_PREFIX to email's subject

---
 hypha/apply/activity/tasks.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hypha/apply/activity/tasks.py b/hypha/apply/activity/tasks.py
index 247c8ceda..cc4c13f21 100644
--- a/hypha/apply/activity/tasks.py
+++ b/hypha/apply/activity/tasks.py
@@ -8,6 +8,8 @@ app.config_from_object(settings, namespace='CELERY', force=True)
 
 
 def send_mail(subject, message, from_address, recipients, logs=None):
+    if settings.EMAIL_SUBJECT_PREFIX:
+        subject = str(settings.EMAIL_SUBJECT_PREFIX) + str(subject)
     # Convenience method to wrap the tasks and handle the callback
     send_mail_task.apply_async(
         kwargs={
-- 
GitLab