Skip to content
Snippets Groups Projects
Commit 3436edbf authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Update mail.py

Added more variables
Capitalize variable name
Added `Whole_mail`
parent 65970853
No related branches found
No related tags found
6 merge requests!147Merge previous default branch feat-cod-rmq into main,!85kill nginx process running under user from login node,!51Fix acct create wait,!39WIP:Feat cod rmq,!38WIP: Feat cod rmq,!24Add notify user agent
# Some variable for email # Some variable for email
my_email = 'admin@localhost' Server = 'localhost'
info_url = 'https://www.google.com' My_email = 'admin@localhost'
Sender = 'ADMIN@LISTSERV.LOCALHOST'
Sender_alias = 'Services'
Subject = 'New User Account'
Info_url = 'https://www.google.com'
body = f""" Head = f"""From: {Sender_alias} <{Sender}>
To: <{{{{ to }}}}>
Subject: {Subject}
"""
Body = f"""
Hi {{{{ username }}}} Hi {{{{ username }}}}
Your account has been set up with: Your account has been set up with:
...@@ -11,9 +20,11 @@ User ID: {{{{ username }}}} ...@@ -11,9 +20,11 @@ User ID: {{{{ username }}}}
============================ ============================
If you have any questions, please visit: If you have any questions, please visit:
{info_url} {Info_url}
or email at {my_email} or email at {My_email}
Cheers, Cheers,
""" """
Whole_mail = Head + Body
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