Clarify call to email service. We now use the words content and content_html

This commit is contained in:
mike cullerton 2021-10-13 12:05:08 -04:00
parent 3ae00d190d
commit 771019d9ca
1 changed files with 4 additions and 3 deletions

View File

@ -96,11 +96,12 @@ def evaluate_python_expression(body):
except Exception as e:
return {"result": False, "expression": body['expression'], "key": body['key'], "error": str(e)}
def send_test_email(subject, address, message, data=None):
rendered, wrapped = EmailService().get_rendered_content(message, data)
content, content_html = EmailService().get_rendered_content(message, data)
EmailService.add_email(
subject=subject,
sender=DEFAULT_SENDER,
recipients=[address],
content=rendered,
content_html=wrapped)
content=content,
content_html=content_html)