Email logic (needs cleanup)

This commit is contained in:
zandercymatics 2024-07-02 12:56:26 -06:00
parent 34f6b03078
commit a8fa24411e
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
4 changed files with 27 additions and 16 deletions

View file

@ -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)