Skip to content
Snippets Groups Projects

Add notify user agent

Merged Bo-Chun Chen requested to merge github/fork/diedpigs/feat-notify-user-agent into feat-cod-rmq
3 files
+ 125
1
Compare changes
  • Side-by-side
  • Inline
Files
3
mail_config.py 0 → 100644
+ 30
0
# Some variable for email
Server = 'localhost'
My_email = 'root@localhost'
Sender = 'ROOT@LOCALHOST'
Sender_alias = 'Services'
Subject = 'New User Account'
Info_url = 'https://www.google.com'
Head = f"""From: {Sender_alias} <{Sender}>
To: <{{{{ to }}}}>
Subject: {Subject}
"""
Body = f"""
Hi {{{{ username }}}}
Your account has been set up with:
============================
User ID: {{{{ username }}}}
============================
If you have any questions, please visit:
{Info_url}
or email at {My_email}
Cheers,
"""
Whole_mail = Head + Body
Loading