Skip to content
Snippets Groups Projects
Unverified Commit 356cad1a authored by Ravi Tripathi's avatar Ravi Tripathi Committed by GitHub
Browse files

Merge pull request #143 from rtripath89/bug_fix_notification_email_quarantine

Use a new variable to send the notification email to users for their …
parents 151de31c 27e6da88
No related branches found
Tags v1.1.1
1 merge request!147Merge previous default branch feat-cod-rmq into main
......@@ -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}")
......
......@@ -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'
......
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