Skip to content
Snippets Groups Projects
Commit 6ecabd9e authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

Move mail cfg vars to rabbit config, keep only mail template.

parent c025bfa5
No related branches found
No related tags found
4 merge requests!147Merge previous default branch feat-cod-rmq into main,!85kill nginx process running under user from login node,!78Feat cod rmq,!73Feat separate mail config
# Some variable for email import rabbit_config as rcfg
Server = 'localhost'
Admin_email = 'root@localhost' Head = f"""From: {rcfg.Sender_alias} <{rcfg.Sender}>
Sender = 'ROOT@LOCALHOST'
Sender_alias = 'Services'
Subject = 'New User Account'
Info_url = 'https://www.google.com'
Head = f"""From: {Sender_alias} <{Sender}>
To: <{{{{ to }}}}> To: <{{{{ to }}}}>
Subject: {Subject} Subject: {rcfg.Subject}
""" """
Body = f""" Body = f"""
...@@ -20,16 +14,16 @@ User ID: {{{{ username }}}} ...@@ -20,16 +14,16 @@ User ID: {{{{ username }}}}
============================ ============================
If you have any questions, please visit: If you have any questions, please visit:
{Info_url} {rcfg.Info_url}
or email at {Admin_email} or email at {rcfg.Admin_email}
Cheers, Cheers,
""" """
Whole_mail = Head + Body Whole_mail = Head + Body
UserReportHead = f"""From: {Sender_alias} <{Sender}> UserReportHead = f"""From: {rcfg.Sender_alias} <{rcfg.Sender}>
To: <{Admin_email}> To: <{rcfg.Admin_email}>
Subject: RC Account Creation Report: {{{{ fullname }}}}, {{{{ username }}}} """ Subject: RC Account Creation Report: {{{{ fullname }}}}, {{{{ username }}}} """
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