Fixes from manual testing email sending

This commit is contained in:
Neil Martinsen-Burrell 2023-02-13 15:37:17 -06:00
parent d0e9cfce10
commit a314b905d3
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
3 changed files with 8 additions and 3 deletions

View file

@ -30,6 +30,9 @@ services:
# --- These keys are obtained from `.env` file --- # --- These keys are obtained from `.env` file ---
# Set a private JWT signing key for Login.gov # Set a private JWT signing key for Login.gov
- DJANGO_SECRET_LOGIN_KEY - DJANGO_SECRET_LOGIN_KEY
# AWS credentials
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
stdin_open: true stdin_open: true
tty: true tty: true
ports: ports:

View file

@ -1,4 +1,4 @@
Thank you for submitting an application for the domain name "{{ domain_name }}". Thank you for submitting an application for the domain name "{{ domain_name }}".
If you need to make changes to your application, visit If you need to make changes to your application, visit
<http://registrar.get.gov/application/{{ id }/edit}>. <http://registrar.get.gov/application/{{ id }}/edit>.

View file

@ -26,7 +26,9 @@ def send_templated_email(template_name: str, to_address: str, context={}):
FromEmailAddress=settings.DEFAULT_FROM_EMAIL, FromEmailAddress=settings.DEFAULT_FROM_EMAIL,
Destination={"ToAddresses": [to_address]}, Destination={"ToAddresses": [to_address]},
Content={ Content={
"Simple": {
"Subject": {"Data": "Thank you for applying for a .gov domain"}, "Subject": {"Data": "Thank you for applying for a .gov domain"},
"Body": {"Text": {"Data": email_body}}, "Body": {"Text": {"Data": email_body}},
}, },
},
) )