From 7a438bbc6bd0e28a428fae564d09c5ca0765126a Mon Sep 17 00:00:00 2001 From: Ravi Tripathi <ravi89@uab.edu> Date: Thu, 23 Mar 2023 13:43:51 -0500 Subject: [PATCH] Adding a new variable to define the from address for subscription email --- prod_rmq_agents/subscribe_mail_lists.py | 2 +- rabbit_config.py.example | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/prod_rmq_agents/subscribe_mail_lists.py b/prod_rmq_agents/subscribe_mail_lists.py index a70d007..d3dd7a8 100644 --- a/prod_rmq_agents/subscribe_mail_lists.py +++ b/prod_rmq_agents/subscribe_mail_lists.py @@ -27,7 +27,7 @@ def mail_list_subscription(ch, method, properties, body): fullname = msg["fullname"] email = msg["email"] - mail_list_admin = rcfg.Sender + mail_list_admin = rcfg.Sender_subscription mail_list = rcfg.Mail_list mail_list_bcc = rcfg.Mail_list_bcc server = rcfg.Mail_server diff --git a/rabbit_config.py.example b/rabbit_config.py.example index 1445130..4a959b2 100644 --- a/rabbit_config.py.example +++ b/rabbit_config.py.example @@ -25,6 +25,7 @@ db_path = ".agent_db" Mail_server = 'localhost' Admin_email = 'root@localhost' Sender = 'ROOT@LOCALHOST' +Sender_subscription = 'SUBSCRIBE_EMAIL@LOCALHOST' Sender_alias = 'Services' Subject = 'New User Account' Info_url = 'https://www.google.com' -- GitLab