mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 03:58:39 +02:00
Add mocks
This commit is contained in:
parent
9e65d687ac
commit
5c892dcec5
3 changed files with 49 additions and 51 deletions
|
@ -20,7 +20,7 @@ def send_templated_email(template_name: str, subject_template_name: str, to_addr
|
|||
context as Django's HTML templates. context gives additional information
|
||||
that the template may use.
|
||||
"""
|
||||
|
||||
print(f"An email was sent! Template name: {template_name} to {to_address}")
|
||||
template = get_template(template_name)
|
||||
email_body = template.render(context=context)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue