mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 03:58:39 +02:00
Email logic (needs cleanup)
This commit is contained in:
parent
34f6b03078
commit
a8fa24411e
4 changed files with 27 additions and 16 deletions
|
@ -45,6 +45,8 @@ def send_templated_email(
|
|||
|
||||
template = get_template(template_name)
|
||||
email_body = template.render(context=context)
|
||||
if email_body:
|
||||
email_body.strip().lstrip("\n")
|
||||
|
||||
subject_template = get_template(subject_template_name)
|
||||
subject = subject_template.render(context=context)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue