diff --git a/prod_rmq_agents/notify_user.py b/prod_rmq_agents/notify_user.py index d204bad3d1e0e2b73862f98683672a0aef41f6a3..1c9c83b51809868babeecd8b375a62b844090458 100644 --- a/prod_rmq_agents/notify_user.py +++ b/prod_rmq_agents/notify_user.py @@ -70,7 +70,7 @@ def notify_user(ch, method, properties, body): else: errmsg = "Sending email to user" smtp = smtplib.SMTP(rcfg.Mail_server) - smtp.sendmail(rcfg.Sender, receivers, message) + smtp.sendmail(rcfg.Sender_notification, receivers, message) logger.debug(f"Email sent to: {user_email}") diff --git a/rabbit_config.py.example b/rabbit_config.py.example index 4a959b2a497e616b108371aa2dd2ea9daf9b9035..d1f3a924a21a81e307c9d607804a4ab54b5ff502 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_notification = 'NOTIFY@LOCALHOST' Sender_subscription = 'SUBSCRIBE_EMAIL@LOCALHOST' Sender_alias = 'Services' Subject = 'New User Account'