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

Use jinja2 template engine for email body

mail.py:
  define variable related to email
  `body` is the template we will use in agent

  for variables that are pre-defined in the same file,
      use single curly bracket for it.
  e.g. {info_url}

  for `username` or other variables that are undefined until msg is received,
  use four curly brackets for both open and close
  e.g. {{{{ username }}}}
parent 8d7e98ae
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
Loading
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