Skip to content
Snippets Groups Projects
Commit 27e6da88 authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Use a new variable to send the notification email to users for their account

parent 151de31c
No related branches found
No related tags found
2 merge requests!147Merge previous default branch feat-cod-rmq into main,!143Use a new variable to send the notification email to users for their …
...@@ -70,7 +70,7 @@ def notify_user(ch, method, properties, body): ...@@ -70,7 +70,7 @@ def notify_user(ch, method, properties, body):
else: else:
errmsg = "Sending email to user" errmsg = "Sending email to user"
smtp = smtplib.SMTP(rcfg.Mail_server) 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}") logger.debug(f"Email sent to: {user_email}")
......
...@@ -25,6 +25,7 @@ db_path = ".agent_db" ...@@ -25,6 +25,7 @@ db_path = ".agent_db"
Mail_server = 'localhost' Mail_server = 'localhost'
Admin_email = 'root@localhost' Admin_email = 'root@localhost'
Sender = 'ROOT@LOCALHOST' Sender = 'ROOT@LOCALHOST'
Sender_notification = 'NOTIFY@LOCALHOST'
Sender_subscription = 'SUBSCRIBE_EMAIL@LOCALHOST' Sender_subscription = 'SUBSCRIBE_EMAIL@LOCALHOST'
Sender_alias = 'Services' Sender_alias = 'Services'
Subject = 'New User Account' Subject = 'New User Account'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment